예제 #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);
        }
예제 #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);
        }
예제 #3
0
        public EffectBase createAndAdd(EffectType type, EffectRenderType renderType)
        {
            EffectBase effect = null;

            if (EffectType.eLinkEffect == type)
            {
                effect = new LinkEffect(renderType);
            }
            else if (EffectType.eMoveEffect == type)
            {
                effect = new MoveEffect(renderType);
            }
            else if (EffectType.eSceneEffect == type)
            {
                effect = new SceneEffect(renderType);
            }

            Ctx.m_instance.m_sceneEffectMgr.addObject(effect);

            return(effect);
        }
예제 #4
0
        protected SceneEntityBase m_linkedEntity;       // 连接的对象,测试使用

        public LinkEffect(EffectRenderType renderType) :
            base(renderType)
        {
        }
예제 #5
0
 public SceneEffect(EffectRenderType renderType) :
     base(renderType)
 {
      
 }
예제 #6
0
        protected SceneEntityBase m_linkedEntity;       // 连接的对象,测试使用

        public LinkEffect(EffectRenderType renderType) :
            base(renderType)
        {
             
        }
예제 #7
0
 public MoveEffect(EffectRenderType renderType) :
     base(renderType)
 {
     m_moveControl = new EffectMoveControl(this);
     m_moveDestEventDispatch = new AddOnceAndCallOnceEventDispatch();
 }
예제 #8
0
 public SceneEffect(EffectRenderType renderType) :
     base(renderType)
 {
 }
예제 #9
0
 public MoveEffect(EffectRenderType renderType) :
     base(renderType)
 {
     m_moveControl           = new EffectMoveControl(this);
     m_moveDestEventDispatch = new AddOnceAndCallOnceEventDispatch();
 }