PlaySwingAnimation() публичный Метод

public PlaySwingAnimation ( Mobile from ) : void
from Mobile
Результат void
		public void Use( Mobile from, BaseWeapon weapon )
		{
			BeginSwing();

			from.Direction = from.GetDirectionTo( GetWorldLocation() );
			weapon.PlaySwingAnimation( from );

			from.CheckSkill( weapon.Skill, m_MinSkill, m_MaxSkill );
		}
Пример #2
0
 public void PunchMongbat(Mobile from, BaseWeapon weapon)
 {
     if (!from.InRange(this, 1))
     {
         from.LocalOverheadMessage(MessageType.Regular, 0x3B2, false, "You are too far away to punch that thing.");
         return;
     }
     else
     {
         from.Direction = from.GetDirectionTo(GetWorldLocation());
         weapon.PlaySwingAnimation(from);
         Timer.DelayCall(TimeSpan.FromSeconds(0.75), new TimerCallback(OnMongbatPunch));
     }
 }