public void SwitchToCountdown() { Hits = 0; UpdateHeadlights(); // Reset CurrentState = StateCountdown; CurrentState.Start(this); }
private void Start() { CurrentState = StateCountdown = new RacingStateCountdown(); CurrentState.Start(this); StateRacing = new RacingStateRacing(); StateDead = new RacingStateDead(); StateWon = new RacingStateWon(); ForceClear(); }
public void SwitchToRacing() { CurrentState = StateRacing; CurrentState.Start(this); }
public void SwitchToWon() { CurrentState = StateWon; CurrentState.Start(this); }
public void SwitchToDead() { CurrentState = StateDead; CurrentState.Start(this); }