public void Dead() { Debug.Log("NPC is dead"); //Do something; inGameManager.Lose(); Destroy(gameObject); }