GameEntities.Unit.OnRemoveChild C# (CSharp) Method

OnRemoveChild() protected method

Overridden from Engine.EntitySystem.Entity.OnRemoveChild(Entity)
protected OnRemoveChild ( Entity entity ) : void
entity Entity
return void
        protected override void OnRemoveChild( Entity entity )
        {
            base.OnRemoveChild( entity );

            if( fastMoveInfluence == entity )
                fastMoveInfluence = null;
            else if( fastAttackInfluence == entity )
                fastAttackInfluence = null;
            else if( bigDamageInfluence == entity )
                bigDamageInfluence = null;
        }