private void OnTriggerEnter(Collider other) { if (other.CompareTag("Player") && !isTriggered) { isTriggered = true; if (kid) { kid.onDeath += OnPlayerDeath; } if (brother) { brother.onDeath += OnPlayerDeath; } if (dog) { dog.onDeath += OnPlayerDeath; } manager.SetActive(this); } }