public void EquipSpell(RuntimeSpellItems spell) { currentSpell = spell; QuickSlot uiSlot = QuickSlot.singleton; uiSlot.UpdateSlot(QSlotType.spell, spell.instance.icon); }
public RuntimeSpellItems SpellToRuntimeSpell(Spell s) { GameObject go = new GameObject(); RuntimeSpellItems inst = go.AddComponent <RuntimeSpellItems>(); inst.instance = new Spell(); StaticFunctions.DeepCopySpell(s, inst.instance); go.name = s.itemName; r_spells.Add(inst); return(inst); }