Example #1
0
 private void DetachTargetItem(DetachItem detachItem)
 {
     if (detachItem)
     {
         detachItem.OnDetach();
     }
 }
 public override void OnDetach(DetachItem target)
 {
     if (m_rigidbody == null)
     {
         m_rigidbody = target.gameObject.AddComponent <Rigidbody>();
     }
 }
Example #3
0
 public override void OnDetach(DetachItem target)
 {
     detachItem = target.transform;
     CoroutineController.Instence.StartCoroutine(DelayMoveTo());
 }
Example #4
0
 public abstract void OnDetach(DetachItem target);