Exemplo n.º 1
0
    public void OnHit()
    {
        float value = (float)health_script.getHealth() / (float)healt_max;

        healtBar.fillAmount = value;
        isDisplaying        = true;
        canevas.SetActive(true);
        StartCoroutine(WaitAndDisableHealthBar());
    }