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