private void UpdateHp() { if (ownerPlayer != null) { if (!ownerPlayer.gameObject.activeSelf) // player가 active 되어있지 않다면 { // hud도 같이 꺼줌 gameObject.SetActive(ownerPlayer.gameObject.activeSelf); } hpGage.SetHp(ownerPlayer.CurrentHp, ownerPlayer.MaxHp); } }
public override void InitializePanel() { base.InitializePanel(); hpGage.SetHp(100, 100); }