Example #1
0
        public void SwitchToCountdown()
        {
            Hits = 0;
            UpdateHeadlights(); // Reset

            CurrentState = StateCountdown;
            CurrentState.Start(this);
        }
Example #2
0
        private void Start()
        {
            CurrentState = StateCountdown = new RacingStateCountdown();
            CurrentState.Start(this);

            StateRacing = new RacingStateRacing();
            StateDead   = new RacingStateDead();
            StateWon    = new RacingStateWon();

            ForceClear();
        }
Example #3
0
 public void SwitchToRacing()
 {
     CurrentState = StateRacing;
     CurrentState.Start(this);
 }
Example #4
0
 public void SwitchToWon()
 {
     CurrentState = StateWon;
     CurrentState.Start(this);
 }
Example #5
0
 public void SwitchToDead()
 {
     CurrentState = StateDead;
     CurrentState.Start(this);
 }