コード例 #1
0
 public override void OnDoubleClick(Mobile from)
 {
     if (from.InRange(GetWorldLocation(), 2))
     {
         if (m_Owner != null)
         {
             BaseAnimal ba = (BaseAnimal)m_Owner;
             ba.PlaySound(ba.GetAngerSound());
             ba.Awake();
         }
         else
         {
             from.SendMessage("That animal won't wake up...oops!!");
             Delete();
         }
     }
     else
     {
         from.SendMessage("You can't reach that!");
     }
 }