Beispiel #1
0
 void CheckConnections()
 {
     if (!connectionOne || !connectionTwo)
     {
         if (connectionOne)
         {
             connectionOne.RemoveAttachedWire();
         }
         if (connectionTwo)
         {
             connectionTwo.RemoveAttachedWire();
         }
         Destroy(gameObject);
     }
 }