예제 #1
0
 // Destroys the Moveable object that is located on this field
 public void DestroyMoveable()
 {
     if (onThis != null)
     {
         onThis.Destroy();
     }
 }
예제 #2
0
 // Interacting with the Moveable object
 // If the switched attribute is greater than 0, that means the fall trap is open,
 // so the Moveable object needs to be destroyed
 public override void Interact(Moveable Moveable)
 {
     if (switched > 0)
     {
         Moveable.Destroy();
     }
 }
예제 #3
0
 // Interacting with the Moveable object
 // The Moveable object needs to be destroyed
 public virtual void Interact(Moveable Moveable)
 {
     Moveable.Destroy();
 }