コード例 #1
0
 public override void Input(int input)
 {
     base.Input(input);
     StateHandler.AddDelay();
     if (input == Globals.KEY_ACCEPT)
     {
         string temp = StateHandler.GetPC(first).Name;
         StateHandler.SetPC(StateHandler.GetPC(count).Name, first);
         StateHandler.SetPC(temp, count);
         parent = new SubStateOrderChangeOne((SubStateAbstract)parent.Parent);
         StateHandler.State = parent;
     }
     else if (input == Globals.KEY_CANCEL)
         StateHandler.State = parent;
 }
コード例 #2
0
        }//end EVC

        public override void Input(int input)
        {
            base.Input(input);
            StateHandler.AddDelay();
            if (input == Globals.KEY_ACCEPT)
            {
                string temp = StateHandler.GetPC(first).Name;
                StateHandler.SetPC(StateHandler.GetPC(count).Name, first);
                StateHandler.SetPC(temp, count);
                parent             = new SubStateOrderChangeOne((SubStateAbstract)parent.Parent);
                StateHandler.State = parent;
            }
            else if (input == Globals.KEY_CANCEL)
            {
                StateHandler.State = parent;
            }
        }//end input