CheckState()

public void CheckState(int health)
    {
        //Debug.Log("Current health: " + health);

        if (health <= 50 && health > 25) heroWellBeing = WellBeing.NearFatal;
        else if (health < 26) heroWellBeing = WellBeing.Fatal;
        else heroWellBeing = WellBeing.Normal;

        IndicateWellBeing();
    }


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *