Exemple #1
0
        public override void Dead()
        {
            Engine.IRenderSystem rs = Engine.RareEngine.Instance().GetRenderSystem();
            if (rs == null)
            {
                return;
            }

            Engine.IEffect effect = rs.GetEffect(m_uEffectID);
            if (effect != null)
            {
                rs.RemoveEffect(effect);
            }
        }
Exemple #2
0
        IEffect GetEffectByID(uint id)
        {
            Engine.IRenderSystem rs = Engine.RareEngine.Instance().GetRenderSystem();
            if (rs == null)
            {
                return(null);
            }

            Engine.IEffect effect = rs.GetEffect(id);
            if (effect != null)
            {
                return(effect);
            }
            return(null);
        }