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); }
void Awake() { instance = this; }