示例#1
0
    void Update()
    {
        if (state == GameState.BATTLE)
        {
            //update HUD
            leftHUD.SetHealth((int)leftChar.charStats.currentHealth);
            leftHUD.SetStamina((int)leftChar.charStats.currentStamina);
            leftHUD.SetAbility((int)leftChar.charStats.currentCooldown);

            rightHUD.SetHealth((int)rightChar.charStats.currentHealth);
            rightHUD.SetStamina((int)rightChar.charStats.currentStamina);
            rightHUD.SetAbility((int)rightChar.charStats.currentCooldown);
        }
    }