Exemplo n.º 1
0
 public ZombieStateMashine(Animator animator, ZombieSettings zombieSettings, NavMeshAgent agent, LayerMask playerLayer)
 {
     this.animator = animator;
     this.zombieSettings = zombieSettings;
     this.agent = agent;
     this.playerLayer = playerLayer;
     currentState = new WalkingState(this, agent);
 }
Exemplo n.º 2
0
 public void SetState(ZombieBehaviourState state)
 {
     if(!currentState.GetType().Equals(state.GetType())) currentState = state;
 }