private void fireUnSnappedEvent(GameObject unSnappedObject)
 {
     isSnapped = false;
     OnUnSnapped.Invoke();
     if (OnUnSnappedEvent != null)
     {
         OnUnSnappedEvent(this);
     }
 }
Beispiel #2
0
 IEnumerator CorTriggerOnUnsnappedEvent()
 {
     if (PermanentSnap)
     {
         Debug.Log("Trying to Unsnap from a permanent snap!");
     }
     else
     {
         OnUnSnapped.Invoke();
     }
     yield return(null);
 }