コード例 #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;
 }