Esempio n. 1
0
 void Start()
 {
     selective.SetActive(false);
     magicManager = GameObject.Find("Player").GetComponent <MagicManager>();
     spellSO      = magic.GetComponent <Spell>().scriptableObject;
     gameObject.GetComponentInChildren <Text>().text = spellSO.name;
 }
    void AddItem()
    {
        SpellSO newItem = new SpellSO();

        spellSOList.spellCheckmarks.Add(newItem);
        viewIndex = spellSOList.spellCheckmarks.Count;
    }