Exemple #1
0
    //------------------------------------------------------------------------------------------------------------------/

    public void RefreshHotbar()
    {
        hotbar.DisplaySpells(hand);
        hotbar.DisplayPA(caster.RemainingUse);

        for (int i = 0; i < hand.Count; i++)
        {
            if (caster.RemainingUse <= 0)
            {
                values.GetChild(i).GetComponent <Image>().color = greyscale;
            }
            else
            {
                values.GetChild(i).GetComponent <Image>().color = Color.white;
            }
        }
    }