Пример #1
0
 // Dropping the key when we plunge the tiolet
 void PlungeToilet()
 {
     if (!hasDropped)
     {
         PickableObject pickableObject = Instantiate(key, dropPoint.position, dropPoint.rotation).GetComponent <PickableObject>(); // Spawning the key
         pickableObject.OnPickup();
         hasDropped = true;
     }
 }