Beispiel #1
0
    /// <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);
    }
Beispiel #2
0
 private void OnClickSetting()
 {
     SetZooPriceCommand.Do(CurSettingPrice);
 }