示例#1
0
 void GetInput()
 {
     if (player.GetButtonDown("Fire"))
     {
         //CmdFire();
         CmdAddActionToList(Enumerations.Action.Shoot);
     }
     else if (player.GetButtonDown("Move Counterclockwise"))
     {
         //DoAction(Enumerations.Action.TurnLeft);
         CmdAddActionToList(Enumerations.Action.TurnLeft);
     }
     else if (player.GetButtonDown("Move Clockwise"))
     {
         //DoAction(Enumerations.Action.TurnRight);
         CmdAddActionToList(Enumerations.Action.TurnRight);
     }
     else if (player.GetButtonDown("Short Move"))
     {
         //DoAction(Enumerations.Action.ShortMove);
         CmdAddActionToList(Enumerations.Action.ShortMove);
     }
     else if (player.GetButtonDown("Long Move"))
     {
         //DoAction(Enumerations.Action.LongMove);
         CmdAddActionToList(Enumerations.Action.LongMove);
     }
     else if (player.GetButtonDown("Reverse"))
     {
         //DoAction(Enumerations.Action.Reverse);
         CmdAddActionToList(Enumerations.Action.Reverse);
     }
 }