public Spell GetSpell(string spellID)
        {
            SpellItemScriptableObject obj = Resources.Load(StaticStrings.SpellScriptableObject_FileName) as SpellItemScriptableObject;

            if (obj == null)
            {
                Debug.Log(StaticStrings.SpellScriptableObject_FileName + "cant be laoded");
                return(null);
            }

            int index = GetIndexFromString(spell_IDs, spellID);

            if (index == -1)
            {
                Debug.Log("Cant find spell");
                return(null);
            }

            return(obj.spellItems[index]);
        }
        void LoadSpellIDs()
        {
            SpellItemScriptableObject obj = Resources.Load(StaticStrings.SpellScriptableObject_FileName) as SpellItemScriptableObject;

            if (obj == null)
            {
                Debug.Log("Couldn't load spell item from: " + StaticStrings.SpellScriptableObject_FileName);
            }

            for (int i = 0; i < obj.spellItems.Count; i++)
            {
                if (spell_IDs.ContainsKey(obj.spellItems[i].item_id))
                {
                    Debug.Log("Spell Item already exists in the resource manager dictionary!");
                }
                else
                {
                    spell_IDs.Add(obj.spellItems[i].item_id, i);
                }
            }
        }