https://github.com/ctneptune/spinthewheel
An example of spinning a wheel to grant prizes in Unity 3D.
https://github.com/ctneptune/spinthewheel
candy-crush mobile-game unity-3d unity3d wheel-of-fortune
Last synced: about 1 year ago
JSON representation
An example of spinning a wheel to grant prizes in Unity 3D.
- Host: GitHub
- URL: https://github.com/ctneptune/spinthewheel
- Owner: CTNeptune
- License: mit
- Created: 2020-10-15T21:23:00.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-07T14:54:16.000Z (over 5 years ago)
- Last Synced: 2025-04-06T11:48:46.305Z (about 1 year ago)
- Topics: candy-crush, mobile-game, unity-3d, unity3d, wheel-of-fortune
- Language: ShaderLab
- Homepage:
- Size: 7.83 MB
- Stars: 12
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SpinTheWheel
An example of spinning a wheel that grants prizes in Unity 3D 2018.4.12f1. It's a complete project that should compile out-of-the-box.
Features:
- Custom inspector for easily adding/removing wheel items
- Can spin either clockwise or counterclockwise
- Animations can be tweaked in the inspector
- Simulates 1000 spins and displays the results in the console
- Winning item properties can be plugged into API of your choice (this example just adds the item's value to a text mesh's value)
An example of the wheel in action:
Example showing simulated spins: