Example #1
0
 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);
     }
 }
Example #2
0
 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>();
 }