private void OnComponentUpdated(Spells.Update update) { for (var i = 0; i < update.spellAnimationEvent.Count; i++) { SpellsVisualizerPool.ShowSpellEffect(update.spellAnimationEvent[i].position.ToVector3(), update.spellAnimationEvent[i].spellType); } }
private void OnComponentUpdated(Spells.Update update) { for (int i = 0; i < update.spellAnimationEvent.Count; i++) { PlaySpellEffect(update.spellAnimationEvent[i].spellType, update.spellAnimationEvent[i].position.ToVector3()); } }
private void OnSpellCast(Spells.Update spellCastUpdate) { for (var eventNum = 0; eventNum < spellCastUpdate.spellAnimationEvent.Count; eventNum++) { var spellCast = spellCastUpdate.spellAnimationEvent[eventNum]; TriggerSpellcastAudio(spellCast.spellType, spellCast.position); } }