https://github.com/zain-ul-din/unitydailyreward
Unity Daily Reward Implementation Using System DateTime APIS
https://github.com/zain-ul-din/unitydailyreward
csharp-script daily-reward daily-rewards system-time unity2d unity3d unity3d-games
Last synced: about 1 year ago
JSON representation
Unity Daily Reward Implementation Using System DateTime APIS
- Host: GitHub
- URL: https://github.com/zain-ul-din/unitydailyreward
- Owner: Zain-ul-din
- Created: 2022-10-13T09:12:08.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-06-29T07:06:34.000Z (almost 2 years ago)
- Last Synced: 2025-05-05T09:08:56.388Z (about 1 year ago)
- Topics: csharp-script, daily-reward, daily-rewards, system-time, unity2d, unity3d, unity3d-games
- Language: C#
- Homepage:
- Size: 45.9 KB
- Stars: 14
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.
### [Used in production](https://play.google.com/store/apps/details?id=com.ga.superhero.skateboard.mini.car.racinggames)


***
# Usage
```diff
- 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**

### **DailyReward Btn**

### **Reward Button**

### **2X Reward Button**

***
# 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 dailyRewardBtns``` static list to access all buttons
***
[Want to Contribute?](https://github.com/Zain-ul-din/DailyReward/blob/master/Scripts/Internal/DailyRewardInternal.cs)
[Report Bug Here!](https://github.com/Zain-ul-din/DailyReward/issues)