コード例 #1
0
    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);
    }
コード例 #2
0
//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);
    }