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