예제 #1
0
 private void shootSpell(string tag)
 {
     if (manaManager.subtractMana(spellCosts[tag]))
     {
         GameObject spell = ObjectPoolerManager.SharedInstance.GetPooledObject(tag);
         //spell.transform.parent = this.gameObject.transform;
         if (spell)
         {
             spell.GetComponent <SpellManager>().setUp(endOfWand.gameObject, this.gameObject);
         }
     }
 }