Example #1
0
        protected bool m_bAutoRemove;       // 特效播放完成是否自动移除

        public EffectBase(EffectRenderType renderType)
        {
            if (EffectRenderType.eSpriteEffectRender == renderType)
            {
                m_render = new SpriteEffectRender(this);
            }
            else if (EffectRenderType.eShurikenEffectRender == renderType)
            {
                m_render = new ShurikenEffectRender(this);
            }
            else if (EffectRenderType.eFxEffectRender == renderType)
            {
                m_render = new FxEffectRender(this);
            }

            m_playEndEventDispatch = new AddOnceAndCallOnceEventDispatch();
            effectRender.addPlayEndEventHandle(onEffectPlayEnd);
        }
Example #2
0
        protected bool m_bAutoRemove;                   // 特效播放完成是否自动移除

        public EffectBase(EffectRenderType renderType)
        {
            if (EffectRenderType.eSpriteEffectRender == renderType)
            {
                m_render = new SpriteEffectRender(this);
            }
            else if (EffectRenderType.eShurikenEffectRender == renderType)
            {
                m_render = new ShurikenEffectRender(this);
            }
            else if (EffectRenderType.eFxEffectRender == renderType)
            {
                m_render = new FxEffectRender(this);
            }

            m_playEndEventDispatch = new AddOnceAndCallOnceEventDispatch();
            effectRender.addPlayEndEventHandle(onEffectPlayEnd);
        }