protected override void OnFreshViewWithData() { base.OnFreshViewWithData(); _curData = Data as HandUpItemData; if (_curData != null) { Player.UpdateView(_curData.Info); OperationState.TrySetComponentValue(_curData.Status.ToString()); } }
private void OnHandItemInfo(HandUpItemData itemData) { if (_curData != null) { var changeView = _viewDic[itemData.UserId]; if (changeView) { changeView.OnStateChange(itemData.Status); if (itemData.Status == HandUpStatus.DisAgree) { Noctie.TrySetComponentValue(string.Format(DisagreeFormat, itemData.Info.NickM)); ShowCd(ColseTime, delegate { CdTime.TrySetComponentValue(ConstantData.IntValue.ToString()); Close(); }); } } FreshHandInfo(); } }