示例#1
0
        public override void RefreshByPlayerExecuted(RefreshByPlayerCommand command)
        {
            var toggle_ready = gameObject.Children().Where(go => go.name == "Ready").Single().GetComponent <Toggle> ();

            toggle_ready.isOn = Convert.ToBoolean(PlayerItem.Player.CustomProperties ["is_ready"]);
        }
示例#2
0
 public virtual void RefreshByPlayerExecuted(RefreshByPlayerCommand command)
 {
 }
示例#3
0
 public virtual void ExecuteRefreshByPlayer(RefreshByPlayerCommand command)
 {
     command.Sender = PlayerItem;
     PlayerItem.RefreshByPlayer.OnNext(command);
 }
示例#4
0
 public virtual void RefreshByPlayerHandler(RefreshByPlayerCommand command)
 {
     this.RefreshByPlayer(command.Sender as PlayerItemViewModel);
 }