public void letParticlePlayField(Enumerations.enSfxAndPfx e, int duration, Feld target) { GameObject play = null; switch (e) { case Enumerations.enSfxAndPfx.Beschwoeren: play = summonPfx; break; case Enumerations.enSfxAndPfx.Eiswand: play = eiswandPfx; break; case Enumerations.enSfxAndPfx.FieldChange: play = fieldChangePfx; break; } SpellParticleManager.SpawnSpellParticles(play, duration, target); }
public void letSoundPlay(Enumerations.enSfxAndPfx e) { AudioClip play = null; switch (e) { case Enumerations.enSfxAndPfx.Beschwoeren: play = summonSfx; break; case Enumerations.enSfxAndPfx.Blattgeschoss: play = blattgeschossSfx; break; case Enumerations.enSfxAndPfx.Blizzard: play = blizzardSfx; break; case Enumerations.enSfxAndPfx.Eisadler: play = eisadlerSfx; break; case Enumerations.enSfxAndPfx.Eisblock: play = eisblockSfx; break; case Enumerations.enSfxAndPfx.Eislanze: play = eislanzeSfx; break; case Enumerations.enSfxAndPfx.Eispfeil: play = eispfeilSfx; break; case Enumerations.enSfxAndPfx.Eiswand: play = eiswandSfx; break; case Enumerations.enSfxAndPfx.Energie: play = energieSfx; break; case Enumerations.enSfxAndPfx.ExplosiveSamen: play = explosiveSamenSfx; break; case Enumerations.enSfxAndPfx.Fernkampf: play = fernkampfSfx; break; case Enumerations.enSfxAndPfx.FieldChange: play = fieldChangeSfx; break; case Enumerations.enSfxAndPfx.Heilen: play = heilenSfx; break; case Enumerations.enSfxAndPfx.KarteBewegen: play = cardsSfx; break; case Enumerations.enSfxAndPfx.KreaturKO: play = kreaturKOSfx; break; case Enumerations.enSfxAndPfx.Langsam: play = langsamSfx; break; case Enumerations.enSfxAndPfx.Nahkampf: play = nahkampfSfx; break; case Enumerations.enSfxAndPfx.NeuesLeben: play = neuesLebenSfx; break; case Enumerations.enSfxAndPfx.NextTurn: play = nextTurnSfx; break; case Enumerations.enSfxAndPfx.Rankenschlag: play = rankenschlagSfx; break; case Enumerations.enSfxAndPfx.Revive: play = reviveSfx; break; case Enumerations.enSfxAndPfx.Teleport: play = tauschenSfx; break; case Enumerations.enSfxAndPfx.Unsichtbar: play = unsichtbarSfx; break; case Enumerations.enSfxAndPfx.Wiederkehr: play = wiederkehrSfx; break; case Enumerations.enSfxAndPfx.Wucherwurzeln: play = wucherwurzelnSfx; break; } SoundManagerScript.instance.PlaySingle(play); }
//Manages Sound and Particle Effects public void letParticlePlayMonster(Enumerations.enSfxAndPfx e, int duration, KreaturChip target, KreaturChip origin = null) { GameObject play = null; switch (e) { case Enumerations.enSfxAndPfx.Blattgeschoss: play = blattgeschossPfx; break; case Enumerations.enSfxAndPfx.Blizzard: play = blizzardPfx; break; case Enumerations.enSfxAndPfx.Eisadler: play = eisadlerPfx; break; case Enumerations.enSfxAndPfx.Eisblock: play = eisblockPfx; break; case Enumerations.enSfxAndPfx.Eislanze: play = eislanzePfx; break; case Enumerations.enSfxAndPfx.Eispfeil: play = eispfeilPfx; break; case Enumerations.enSfxAndPfx.Energie: play = energiePfx; break; case Enumerations.enSfxAndPfx.ExplosiveSamen: play = explosiveSamenPfx; break; case Enumerations.enSfxAndPfx.Fernkampf: play = fernkampfPfx; break; case Enumerations.enSfxAndPfx.Heilen: play = heilenPfx; break; case Enumerations.enSfxAndPfx.KreaturKO: play = kreaturKOPfx; break; case Enumerations.enSfxAndPfx.Nahkampf: play = nahkampfPfx; break; case Enumerations.enSfxAndPfx.Rankenschlag: play = rankenschlagPfx; break; case Enumerations.enSfxAndPfx.Teleport: play = tauschenPfx; break; case Enumerations.enSfxAndPfx.Wiederkehr: play = wiederkehrPfx; break; case Enumerations.enSfxAndPfx.Wucherwurzeln: play = wucherwurzelnPfx; break; } SpellParticleManager.SpawnSpellParticles(play, duration, target, origin); }