void OnTriggerEnter2D(Collider2D other) { if (other.name == "boi") { HealthManager.DecrementHealth(); if (HealthManager.GetHealth() <= 0) { LevelManager.RespawnPlayer(); } } }
void OnTriggerEnter2D(Collider2D other) { if (other.name == "boi") { HealthManager.DecrementHealth(); if (HealthManager.GetHealth() <= 0) { LevelManager.RespawnPlayer(); } } }