Пример #1
0
        /// <summary>Overridden from <see cref="Engine.EntitySystem.Entity.OnRemoveChild(Entity)"/></summary>
        protected override void OnRemoveChild(Entity entity)
        {
            base.OnRemoveChild(entity);

            if (fastMoveInfluence == entity)
            {
                fastMoveInfluence = null;
            }
            else if (freezeMoveInfluence == entity)//Incin
            {
                freezeMoveInfluence = null;
            }
            else if (fastAttackInfluence == entity)
            {
                fastAttackInfluence = null;
            }
            else if (bigDamageInfluence == entity)
            {
                bigDamageInfluence = null;
            }
            else if (damageInfluence == entity)
            {
                damageInfluence = null;
            }
        }
Пример #2
0
        protected override void OnCreateInfluence(Influence influence)
        {
            base.OnCreateInfluence(influence);

            if (influence is FastMoveInfluence)
            {
                fastMoveInfluence = (FastMoveInfluence)influence;
            }
            else if (influence is FreezeMoveInfluence)//Incin
            {
                freezeMoveInfluence = (FreezeMoveInfluence)influence;
            }
            else if (influence is FastAttackInfluence)
            {
                fastAttackInfluence = (FastAttackInfluence)influence;
            }
            else if (influence is BigDamageInfluence)
            {
                bigDamageInfluence = (BigDamageInfluence)influence;
            }
            else if (influence is DamageInfluence)
            {
                damageInfluence = (DamageInfluence)influence;
            }
        }
Пример #3
0
        /// <summary>Overridden from <see cref="Engine.EntitySystem.Entity.OnRemoveChild(Entity)"/></summary>
        protected override void OnRemoveChild(Entity entity)
        {
            base.OnRemoveChild(entity);

            if (fastMoveInfluence == entity)
                fastMoveInfluence = null;
            else if (freezeMoveInfluence == entity)//Incin
                freezeMoveInfluence = null;
            else if (fastAttackInfluence == entity)
                fastAttackInfluence = null;
            else if (bigDamageInfluence == entity)
                bigDamageInfluence = null;
            else if (damageInfluence == entity)
                damageInfluence = null;
        }
Пример #4
0
        protected override void OnCreateInfluence(Influence influence)
        {
            base.OnCreateInfluence(influence);

            if (influence is FastMoveInfluence)
                fastMoveInfluence = (FastMoveInfluence)influence;
            else if (influence is FreezeMoveInfluence)//Incin
                freezeMoveInfluence = (FreezeMoveInfluence)influence;
            else if (influence is FastAttackInfluence)
                fastAttackInfluence = (FastAttackInfluence)influence;
            else if (influence is BigDamageInfluence)
                bigDamageInfluence = (BigDamageInfluence)influence;
            else if (influence is DamageInfluence)
                damageInfluence = (DamageInfluence)influence;
        }