private void kill() { player.GetComponent <PlayerController>().notifyEnemyKilled(type); parent.removeEnemy(gameObject); Destroy(gameObject); }