Beispiel #1
0
 private void Awake()
 {
     _state = GetComponent <EnemyState>();
 }
Beispiel #2
0
 void UpdateState(EnemyState newState)
 {
     enemyState = newState;
     onEnemyStateUpdateEvent?.Invoke(enemyState);
 }
 private void Update()
 {
     currState = currState.ExecuteState(this);
 }
Beispiel #4
0
 public void Awake()
 {
     _state = GetComponent <EnemyState>();
 }