Exemple #1
0
    public void UpdateUI(GameObject Creature, bool show)
    {
        if (Creature == null)
        {
            ShowUI(false);
            return;
        }

        if (show == false)
        {
            ShowUI(false);
        }
        else
        {
            ShowUI(true);
        }
        CreatureClass cCreature = Creature.GetComponent <CreatureClass>();

        SetName(cCreature.getName());
        SetHealth(cCreature.getHealth(), cCreature.getMaxHealth());
        SetArcana(cCreature.getArcana(), cCreature.getMaxArcana());
        SetExp(cCreature.getExp(), cCreature.getMaxExp());
        SetSprite(cCreature.getSprite());
    }