Example #1
0
 public void ReceiveInput(Hero role, ActStyle act)
 {
     if (act == ActStyle.DOWN)
     {
         role.ChangeState(new Kill());
     }
 }
Example #2
0
 public void ReceiveInput(Hero role, ActStyle act)
 {
     switch (act)
     {
     case ActStyle.UP:
         role.ChangeState(new State_StandUp());
         break;
     }
 }
Example #3
0
        public void ReceiveInput(Hero role, ActStyle act)
        {
            switch (act)
            {
            case ActStyle.DOWN:
                role.ChangeState(new Crouch());
                break;

            case ActStyle.UP:
                role.ChangeState(new Jump());
                break;
            }
        }
Example #4
0
 public void Act(ActStyle act)
 {
     CurState.ReceiveInput(this, act);
 }
Example #5
0
 public void ReceiveInput(Hero role, ActStyle act)
 {
 }