void OnPlayerDamage(PlayerController pc) { Debug.Log("Player took damage"); uiLifeBar.SetHealth(pc.health); lastPlayerHealth = pc.health; }