https://github.com/dmitriycanishev/fortunewheel
Fortune Wheel in Unity (Simple way to adding into your game)
https://github.com/dmitriycanishev/fortunewheel
fortunewheel spin ui unity unity2d
Last synced: about 2 months ago
JSON representation
Fortune Wheel in Unity (Simple way to adding into your game)
- Host: GitHub
- URL: https://github.com/dmitriycanishev/fortunewheel
- Owner: DmitriyCanishev
- License: apache-2.0
- Created: 2025-03-03T07:05:16.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-12T16:58:23.000Z (over 1 year ago)
- Last Synced: 2025-03-12T17:40:31.905Z (over 1 year ago)
- Topics: fortunewheel, spin, ui, unity, unity2d
- Language: C#
- Homepage:
- Size: 1.64 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FortuneWheel
Fortune Wheel in Unity (Simple way to adding into your game)
## How Use
- Create Page for FortuneWheel
- Add component `SpinPageController` on it
- Create child into that page with name **Wheel** that will be container for rewards sectors
- Create sectors into **Wheel** gameObject with component `SpinSectorController`
- Create SO : **Assets->Create->Configs-Spin->SectorsTypeSettings**
- Fill it with some needed reward types (Into `RewardType` you can edit rewards on what you need)
- Create SO : **Assets->Create->Configs-Spin->SectorsDataSettings** (Into it fill values of spin sectors)
- Fill fields into SpinPageController object
## Helpers
For optimizing time of creating FortuneWheel you can use `SpinSectorCreator`, in context menu exist method **CreateSectors**
## Major Notes
1) Into SpinPageController exist variable **_isClockwiseDirection** which needed for change rotate direction (If you add sectors by counterclockwise direction, than uncheck this variable into `SpinPageController` inspector)
2) Count of rewards and their values settings into `SpinDelegator` constructor