Ejemplo n.º 1
0
 private void OnTriggerEnter(Collider collision)
 {
     collisionCodeBlockSnap = GetCollidersCodeBlockSnap(collision);
     if (collisionCodeBlockSnap == CodeBlockSnap.CurrentlyDraggingCodeBlockSnap)
     {
         collisionCodeBlockSnap?.AddSnapColliderInContact(this);
     }
 }
Ejemplo n.º 2
0
 private void OnTriggerEnter(Collider collision)
 {
     collisionCodeBlockSnap = GetCollidersCodeBlockSnap(collision); // TODO: mega hack, need to find codeblock snap of other
     if (collisionCodeBlockSnap == CodeBlockSnap.currentlyDraggingCBS)
     {
         collisionCodeBlockSnap?.AddSnapColliderInContact(this);
     }
 }