Пример #1
0
 public override CharacterState UpdateState()
 {
     if (spawnTime > 0)
     {
         spawnTime -= Time.deltaTime;
     }
     else if (spawnTime <= 0)
     {
         if (wonPuzzle)
         {
             currentState = new WinPuzzleState(details);
             currentState.WinPuzzle();
         }
         else
         {
             currentState = new DefaultAIState(details);
         }
     }
     return(currentState);
 }
Пример #2
0
 public override void WinPuzzle()
 {
     currentState = new WinPuzzleState(details);
     currentState.WinPuzzle();
 }