Beispiel #1
0
    internal void SetStaticTalisman(equipmentList list, TalismanManager talismanManager)
    {
        if (!MainButton)
        {
            MainButton = GetComponent <Image>();
            HalfButton = GetComponentsInChildren <Image>()[1];
        }

        if (MainButton.sprite == null)
        {
            MainButton.sprite = talismanManager.ReturnSubject(myType, false);
        }
        if (MainButton.sprite == null)
        {
            MainButton.sprite = talismanManager.ReturnSubject(myType, true);
        }

        int index = list.equip.completedLevels[(int)myType];

        SetActivity(index);
    }
Beispiel #2
0
    internal void SetChangingTalisman(equipmentList list, TalismanManager talismanManager, classType a_type)
    {
        if (!MainButton)
        {
            MainButton = GetComponent <Image>();
            HalfButton = GetComponentsInChildren <Image>()[1];
        }

        myType = a_type;

        if (myType == classType.Calculi)
        {
            gameObject.SetActive(false);
            return;
        }

        MainButton.sprite = talismanManager.ReturnSubject(myType, false);
        HalfButton.sprite = talismanManager.ReturnSubject(myType, true);

        int index = list.equip.completedLevels[(int)myType];

        SetActivity(index);
    }