예제 #1
0
    private void UpdateHp()
    {
        if (ownerPlayer != null)
        {
            if (!ownerPlayer.gameObject.activeSelf) // player가 active 되어있지 않다면
            {
                // hud도 같이 꺼줌
                gameObject.SetActive(ownerPlayer.gameObject.activeSelf);
            }

            hpGage.SetHp(ownerPlayer.CurrentHp, ownerPlayer.MaxHp);
        }
    }
예제 #2
0
    public override void InitializePanel()
    {
        base.InitializePanel();

        hpGage.SetHp(100, 100);
    }