public void AddComponents(AuricaCaster caster) { string[] componentSeperator = new string[] { ", " }; string[] splitComponents = componentsByName.Split(componentSeperator, System.StringSplitOptions.None); foreach (string item in splitComponents) { caster.AddComponent(item); } }
void Awake() { if (photonView.IsMine) { AuricaCaster.LocalCaster = this; } allComponents = Resources.LoadAll <AuricaSpellComponent>("AuricaSpellComponents"); allSpells = Resources.LoadAll <AuricaSpell>("AuricaSpells"); currentComponents = new List <AuricaSpellComponent>(); currentDistribution = new ManaDistribution(); cachedSpells = new Dictionary <string, CachedSpell>(); }