Server.Spells.SpellHelper.Turn C# (CSharp) Метод

Turn() публичный статический Метод

public static Turn ( Mobile from, object to ) : void
from Mobile
to object
Результат void
		public static void Turn( Mobile from, object to )
		{
			IPoint3D target = to as IPoint3D;

			if( target == null )
				return;

			if( target is Item )
			{
				Item item = (Item)target;

				if( item.RootParent != from )
					from.Direction = from.GetDirectionTo( item.GetWorldLocation() );
			}
			else if( from != target )
			{
				from.Direction = from.GetDirectionTo( target );
			}
		}