Beispiel #1
0
 public CommandData(string commandName)
 {
     CommandName = commandName;
     command     = MasterDataCommand.Get.GetRecord(CommandName);
     coolTime    = new IntReactiveProperty(command.InitialCoolTime);
 }
Beispiel #2
0
 public IObservable <Unit> InvokeCommand(BattleCharacter attacker, MasterDataCommand.Record command)
 {
     return(Observable.Concat(command.Commands.Select(x => x.Invoke(this, attacker, GetOpponent(attacker)))));
 }