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"]); }
public virtual void RefreshByPlayerExecuted(RefreshByPlayerCommand command) { }
public virtual void ExecuteRefreshByPlayer(RefreshByPlayerCommand command) { command.Sender = PlayerItem; PlayerItem.RefreshByPlayer.OnNext(command); }
public virtual void RefreshByPlayerHandler(RefreshByPlayerCommand command) { this.RefreshByPlayer(command.Sender as PlayerItemViewModel); }