Example #1
0
 protected override void OnFreshViewWithData()
 {
     base.OnFreshViewWithData();
     _curData = Data as HandUpItemData;
     if (_curData != null)
     {
         Player.UpdateView(_curData.Info);
         OperationState.TrySetComponentValue(_curData.Status.ToString());
     }
 }
Example #2
0
 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();
     }
 }