Beispiel #1
0
    public void AddEffect(EffectType areaType, float value)
    {
        switch (areaType)
        {
        case EffectType.Flame:
        {
            effects.AddFlameEffect(value);
            break;
        }

        case EffectType.Water:
        {
            effects.AddWaterEffect(value);
        }
        break;

        case EffectType.Slime:
        {
            effects.AddSlimeEffect(value);

            break;
        }

        case EffectType.Oil:
        {
            effects.AddOilEffect(value);

            break;
        }

        default:
        {
            effects.AddWaterEffect(value);
        }
        break;
        }
    }