void OnPickStay(PickUpAbleComponent obj) { if (!Active) { return; } var item = obj.GetComponentInParent <LinkItem>(); if (item) { LinkUtil.ClearActivedLinkPort(item); linkConnectCtrl.TryConnect(); pickCtrl.PickStay(); } linkItem = null; }
/// <summary> /// 放下 /// </summary> /// <param name="obj"></param> void OnPickDown(PickUpAbleComponent obj) { if (!Active) { return; } var item = obj.GetComponentInParent <LinkItem>(); if (item) { LinkUtil.ClearActivedLinkPort(linkItem); if (linkItem) { linkConnectCtrl.SetDisableItem(); } } this.linkItem = null; }