Exemple #1
0
 public void OnTriggerEnter2D(Collider2D col)
 {
     if (!part.OnShip() && !part.snapped && col.transform.GetComponent <SnapPoint>() != null && !connected)
     {
         if (!col.transform.GetComponent <SnapPoint>().connected)
         {
             connectedSnap = col.transform;
             builder.SnapPoints(connectedSnap, transform);
             part.snapped = true;
         }
     }
 }