public PlayerState(GameObject gameObject)
 {
     this.gameObject = gameObject;
     moveState       = new MoveState();
     attackState     = new AttackState();
     dieState        = new DieState();
     injuredState    = new InjuredState();
     autoMove        = new AutoMoveState();
     SetState(States.move);
     curState = moveState;
 }
 public EnemyState(GameObject gameObject)
 {
     this.gameObject = gameObject;
     moveState       = new MoveState();
     attackState     = new AttackState();
     dieState        = new DieState();
     injuredState    = new InjuredState();
     autoMove        = new AutoMoveState();
     SetState(States.move);
     curState = moveState;
     ani      = gameObject.GetComponent <Animator>();
 }