private void SetupPlayerSpells(List <Spell> spells) { int numSpells = spells.Count; for (int spellIndex = 0; spellIndex < numSpells; spellIndex++) { if (!spells[spellIndex].IsBasic) // if it's not a basic spell, then display in spell area { SpellView spellView = GameObject.Instantiate <SpellView>(_spellViewPrefab, _playerSpellPositions[spellIndex].transform); spellView.Setup(spells[spellIndex]); } } }
public void Setup(IContext context, OrbType orbType, SpellView spellView) { _orbType = orbType; _context = context; _spellView = spellView; }