private static int CreateSpell(Spell newSpell, bool processSpell = true)
{
//Debug.DrawTopLeft(newSpell);
int spellId = _spellIdCount++;
newSpell.SpellId = spellId;
newSpell.UpdateSpellInfo();
DetectedSpells.Add(spellId, newSpell);
if (processSpell)
{
CheckSpellCollision();
AddDetectedSpells();
}
if (OnCreateSpell != null)
OnCreateSpell.Invoke(newSpell);
return spellId;
}