// Responsible for the player's life private void OnTriggerEnter(Collider other) { float damage = 10; // When an invisible angel has crashed the player if (other.gameObject.CompareTag("Angel") && !other.GetComponent <AngelController>().AngelFound) { HealthBar.DecreaseLife(damage); GameManager.PlayerLife -= damage; } }