Esempio n. 1
0
 void OnPickStay(PickUpAbleItem go)
 {
     if (go is LinkItem)
     {
         LinkUtil.ClearActivedLinkPort(go as LinkItem);
         linkConnectCtrl.TryConnect();
         pickCtrl.PickStay();
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 放下
 /// </summary>
 /// <param name="obj"></param>
 void OnPickDown(PickUpAbleItem obj)
 {
     if (obj is LinkItem)
     {
         LinkUtil.ClearActivedLinkPort(obj as LinkItem);
         var linkItem = obj as LinkItem;
         if (linkItem)
         {
             linkConnectCtrl.SetDisableItem();
         }
     }
 }