Slot Machine Demo

Example

Classes

  • Reel (Assets/SlotGame/Scripts/Reel.cs)
    It have sprite renderers as childs and update renderers based on internal cursor values(List).
    When 'ReelStatus' is set to moving, 'moveValue' is increased and cursor values is updated automatically.
    Then renderers is updated using 'OnRenderUpdated' event callback function.

  • Machine (Assets/SlotGame/Scripts/Machine.cs)
    It provides a common interface for slot machines and have reels as childs.

CREATE BY