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);
 }
 public void SetState(ZombieBehaviourState state)
 {
     if(!currentState.GetType().Equals(state.GetType())) currentState = state;
 }