Beispiel #1
0
 private void OutCardFinish()
 {
     CancelInvoke("OutCardFinish");
     if (_throw.ThrowCard != null)
     {
         if (pos != null)
         {
             Destroy(pos);
         }
         if (scale != null)
         {
             Destroy(scale);
         }
         var item = _throw.ThrowCard;
         Layout.AddItem(item.transform, true);
         ParseItemToThis(item);
         item.gameObject.SetActive(false);
         item.gameObject.SetActive(true);
         _throw.ThrowCard = null;
         App.GetGameManager <Lyzz2DGameManager>().OnSomeOneThrowCard -= OutCardFinish;
     }
 }
Beispiel #2
0
 public virtual void AddItem(Transform item, bool auto = true)
 {
     ParseItemToThis(item);
     Layout.AddItem(item, auto, ItemScaleX, ItemScaleY);
 }
Beispiel #3
0
 /// <summary>
 /// 组牌的添加处理
 /// </summary>
 /// <param name="item"></param>
 /// <param name="auto"></param>
 public override void AddItem(Transform item, bool auto = true)
 {
     Layout.AddItem(item, auto);
 }