// Destroys the Moveable object that is located on this field public void DestroyMoveable() { if (onThis != null) { onThis.Destroy(); } }
// 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(); } }
// Interacting with the Moveable object // The Moveable object needs to be destroyed public virtual void Interact(Moveable Moveable) { Moveable.Destroy(); }