示例#1
0
        public void ShowMenu(MulSetting mulSetting, int timeOut)
        {
            gameObject.SetActive(true);
            _isShowing = true;
            //胡杠碰吃过
            YxDebug.Log("mulSetting is " + mulSetting.GetValue());
            for (var i = -1; i < Btns.Length - 1; i++)
            {
                var isActive = mulSetting.IsAllowAt(i);
                Btns[i + 1].SetActive(isActive);
            }
            Btns[0].SetActive(true);
            _grid.repositionNow = true;
            var tween = GetComponent <TweenPosition>();

            tween.from    = _formTrans.position;
            tween.to      = _toTrans.position;
            tween.enabled = true;
        }
示例#2
0
 public void ShowMenu(MulSetting mulSetting, int timeOut)
 {
     _isShowing = true;
     //胡杠碰吃过
     for (int i = -1; i < Btns.Length - 1; i++)
     {
         bool isActive = mulSetting.IsAllowAt(i);
         Btns[i + 1].TrySetComponentValue(isActive);
     }
     if (App.GetGameData <Mahjong2DGameData>().XiaoSha)
     {
         if (mulSetting.GetValue() == 128)
         {
             Btns[10].TrySetComponentValue(true);
         }
     }
     Btns[0].TrySetComponentValue(true);
     BtnTabelLayout.repositionNow = true;
     transform.localPosition      = _toTrans.localPosition;
 }