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); }
public override void WinPuzzle() { currentState = new WinPuzzleState(details); currentState.WinPuzzle(); }