Exemplo n.º 1
0
        public void Show(GameObject cardGo, int yaxleOfset)
        {
            if (_AnimCoroutine != null)
            {
                CoroutineMgr.StopCoroutinee(_AnimCoroutine);
            }

            JianTouGo.gameObject.SetActive(true);
            JianTouGo.transform.SetParent(UIComponent.GetUiView <CardFiveStarRoomPanelComponent>().gameObject.transform);
            JianTouGo.transform.localScale = Vector3.one;
            JianTouGo.transform.SetParent(cardGo.transform);
            _offsetVector3.y = yaxleOfset;
            JianTouGo.transform.localPosition = Vector3.zero + _offsetVector3;
            _AnimCoroutine = CoroutineMgr.StartCoroutinee(JinaTouAnim());
        }
Exemplo n.º 2
0
 //清空面板和协程还要所有玩家的牌
 public void ClearUIAndCoroutine()
 {
     for (int i = 0; i < _Coroutines.Length; i++)
     {
         if (_Coroutines[i] != null)
         {
             CoroutineMgr.StopCoroutinee(_Coroutines[i]);
         }
     }
     //隐藏明牌提示面板 和漂分面板 还要小结算面板
     UIComponent.GetUiView <FiveStarMingPaiHintPanelComponent>().Hide();
     UIComponent.GetUiView <SelectPiaoNumPanelComponent>().Hide();
     UIComponent.GetUiView <FiveStarSmallResultPanelComponent>().Hide();
     //隐藏所有牌 和漂分
     foreach (var player in _PlayerDic)
     {
         player.Value.HideAllCard();
         player.Value._PlayerHead.HidePiaoNum();
     }
 }