Example #1
0
        public static void UpdateEffect(EffectType type)
        {
            switch (type)
            {
            case EffectType.Random:
                m_instance = new EffectRandom();
                break;

            case EffectType.Gradient:
                m_instance = new EffectRainbow();
                break;

            case EffectType.RandomGradient:
                m_instance = null;
                break;

            default:
                Console.Out.WriteLine("DiscoCar: Invalid EffectType");
                m_instance = null;
                break;
            }
        }
Example #2
0
 public static void UpdateCurrentEffect()
 {
     EffectBase.UpdateEffect(options.effectType);
     //effect = EffectBase.MakeEffect(options.effectType);
 }