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