public EffectController CreateEffect(EffectType type)
        {
            EffectController createdEffect = null;

            switch (type)
            {
            case EffectType.shellExplosionEffect:
                createdEffect = Instantiate(shellExplosion);
                break;

            case EffectType.tankExposionEffect:
                createdEffect = Instantiate(tankExplosion);
                break;
            }
            return(createdEffect);
        }
Example #2
0
 void Awake()
 {
     instance = this;
 }