示例#1
0
        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);
        }
示例#2
0
 void Awake()
 {
     instance = this;
 }