/// <summary> /// 创建指令 /// </summary> public static void Do(int newPrice) { var command = new SetZooPriceCommand(); command.NewPrice = newPrice; var sequence = GameEntry.Command.Sequence(); sequence.AppendCommand(command); sequence.AppendCommand(new DataUpdatedCommand()); sequence.AppendResultHandler(command.HandleResult); }
private void OnClickSetting() { SetZooPriceCommand.Do(CurSettingPrice); }