Skip to content

Zain-ul-din/UnityDailyReward

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DailyReward

Unity Daily Reward Implementation Using System DateTime APIS

Features:

  • Redeem Options: Users can exchange collected rewards for in-game items, currency, upgrades, or trade/sell to other players.

  • User-friendly APIs: The implementation offers intuitive and straightforward application programming interfaces (APIs) that are designed for easy integration, even for non-technical users.

  • Proven in Production: Successfully tested and used in a live production environment.

  • Customization: System is easily customizable to suit specific needs.

  • Easy to Understand: Everything inside package is self explanatory and easy to understand.

Limitations:

  • Local Time/Date: The system uses local time and date for tracking and managing daily rewards.

DailyReward_Demo

Demo_Pic


Usage

- Version "1.0" documentation may not cover all features of version "2.0".
- But still valuable to checkout. 
  • Attach DailyRewardBtn.cs on each button and assign day in inspector.

  • Attach DailyRewardManager.cs anywhere in scene and assign Timer Text.

  • Give Reward on Btn Click


References

Manager

Manager_Ref

DailyReward Btn

daily_rewardbtn_ref

Reward Button

Reward_ref

2X Reward Button

TwoXReward_Ref


Docs

DailyRewardManager

Public Methods:-

CollectReward () Invokes DailyRewardBtn.onRewardCollect event of active button.

Collect2XReward () Invokes DailyRewardBtn.on2XRewardCollect event of active button.

Properties:-

AvailableRewardBtn return DailyRewardBtn if reward will be available.

Events:-

OnRewardAvailable Invokes when reward available.

Static Methods:-

DailyRewardManager Instance Readonly


DailyRewardBtn

Public Methods:-

UnityEvent OnClaimState

UnityEvent OnClaimedState

UnityEvent OnClaimUnAvailableState

UnityEvent onRewardCollect

UnityEvent on2XRewardCollect

UnityEvent onClick

Static Methods:-

List <DailyRewardBtn> dailyRewardBtns static list to access all buttons


Want to Contribute?

Report Bug Here!

About

Unity Daily Reward Implementation Using System DateTime APIS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages