public void Hide() { DungeonObjectEvent e = transform.GetComponent <DungeonObjectEvent>(); if (e != null) { e.Hide(); } }