Server.Targeting.Target.OnTargetCancel C# (CSharp) Méthode

OnTargetCancel() protected méthode

protected OnTargetCancel ( Mobile from, TargetCancelType cancelType ) : void
from Mobile
cancelType TargetCancelType
Résultat void
        protected virtual void OnTargetCancel( Mobile from, TargetCancelType cancelType )
        {
        }

Usage Example

        public static void Cancel(Mobile m)
        {
            NetState state1 = m.NetState;

            if (state1 != null)
            {
                state1.Send(CancelTarget.Instance);
            }
            Target target1 = m.Target;

            if (target1 != null)
            {
                target1.OnTargetCancel(m, TargetCancelType.Canceled);
            }
        }
All Usage Examples Of Server.Targeting.Target::OnTargetCancel