Unity Daily Reward Implementation Using System DateTime APIS
-
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.
- Local Time/Date: The system uses local time and date for tracking and managing daily rewards.
- 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 assignTimer Text
. -
Give Reward on
Btn Click
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
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