Esempio n. 1
0
 public ChaseState(EnemyController monster) : base(monster.gameObject)
 {
     _enemyController = monster;
     _statBehaviour   = _enemyController.GetComponent <StatsBehaviour>();
 }
Esempio n. 2
0
 public WanderState(EnemyController enemy) : base(enemy.gameObject)
 {
     _enemyController = enemy;
     _statsBehaviour  = _enemyController.GetComponent <StatsBehaviour>();
 }