Beispiel #1
0
        private void switchCommandType(PlusMinusButtonInputData data)
        {
            switch (data.commandName)
            {
            case "attrChange": { setCommand(new CommandAttributeChange(HeroController.mainHero, data)); break; }

            case "defValChange": { setCommand(new CommandDefenceValueChange(HeroController.mainHero, data)); break; }

            case "levelChange": { setCommand(new CommandLevelChange(HeroController.mainHero, data)); break; }
            }
            dataUpdated = false;
        }
 public CommandAttributeChange(C_Hero _hero, PlusMinusButtonInputData _data)
 {
     hero = _hero;
     data = _data;
 }
Beispiel #3
0
 public CommandLevelChange(C_Hero _hero, PlusMinusButtonInputData _data)
 {
     hero = _hero;
     data = _data;
 }
Beispiel #4
0
 public void buttonInput(PlusMinusButtonInputData commandData)
 {
     switchCommandType(commandData);
     inputCommand.execute();
 }
Beispiel #5
0
 public CommandDefenceValueChange(C_Hero _hero, PlusMinusButtonInputData _data)
 {
     hero = _hero;
     data = _data;
 }