/// <summary> /// Called when player clicks "Dispose" button /// Destroys corpse and removes them from their current room /// Note: Functionality unique to the Corpse variant of this menu /// </summary> public void OnClickDisposeButton() { // disposes of corpse-character and destroys menu Corpse victim = character.GetComponent <Corpse>(); victim.Dispose(); Destroy(gameObject); }