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); }
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); }
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); }
protected SceneEntityBase m_linkedEntity; // 连接的对象,测试使用 public LinkEffect(EffectRenderType renderType) : base(renderType) { }
public SceneEffect(EffectRenderType renderType) : base(renderType) { }
protected SceneEntityBase m_linkedEntity; // 连接的对象,测试使用 public LinkEffect(EffectRenderType renderType) : base(renderType) { }
public MoveEffect(EffectRenderType renderType) : base(renderType) { m_moveControl = new EffectMoveControl(this); m_moveDestEventDispatch = new AddOnceAndCallOnceEventDispatch(); }
public SceneEffect(EffectRenderType renderType) : base(renderType) { }
public MoveEffect(EffectRenderType renderType) : base(renderType) { m_moveControl = new EffectMoveControl(this); m_moveDestEventDispatch = new AddOnceAndCallOnceEventDispatch(); }