void Die() { //tell whatever door its linked with that its been destroyed if (linkedDoor != null) { linkedDoor.TargetDestroyed(); } Destroy(gameObject); }