Beispiel #1
0
    private void UpdateHealth(float powerLevel)
    {
        HealthBarImage.fillAmount += powerLevel;

        if (HealthBarImage.fillAmount < 0)
        {
            EndGameAction.CallNoArgs();
        }
    }