C# Class ProjectStorms.RouletteSpinWheel

This script manages the 'Spinning Wheel' effect on the Roulette Wheel. Inputs are passed in from InputManager script via the Roulette Behaviour State script.
Inheritance: UnityEngine.MonoBehaviour
Show file Open project: patferguson/Storms-Project

Public Properties

Property Type Description
rotatorJoint UnityEngine.GameObject
rouletteEndWait float

Public Methods

Method Description
ApplyBuff ( ERouletteBuffs a_buff ) : void

Applies the input buff.

Awake ( ) : void
ChangeSpeed ( bool a_slow, bool a_faster ) : void
OnDisable ( ) : void
OnEnable ( ) : void
RouletteDone ( int a_finalSelectionIndex ) : void

Called when the roulette wheel finishes spinning.

Spin ( ) : void
Start ( ) : void
Update ( ) : void

Method Details

ApplyBuff() public method

Applies the input buff.
public ApplyBuff ( ERouletteBuffs a_buff ) : void
a_buff ERouletteBuffs Buff to apply.
return void

Awake() public method

public Awake ( ) : void
return void

ChangeSpeed() public method

public ChangeSpeed ( bool a_slow, bool a_faster ) : void
a_slow bool
a_faster bool
return void

OnDisable() public method

public OnDisable ( ) : void
return void

OnEnable() public method

public OnEnable ( ) : void
return void

RouletteDone() public method

Called when the roulette wheel finishes spinning.
public RouletteDone ( int a_finalSelectionIndex ) : void
a_finalSelectionIndex int Index of the roulette wheel once the spin has finished.
return void

Spin() public method

public Spin ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

rotatorJoint public property

public GameObject,UnityEngine rotatorJoint
return UnityEngine.GameObject

rouletteEndWait public property

How long to wait after the choice was picked before starting.
public float rouletteEndWait
return float