Server.Mobiles.PackAnimal.TryPackOpen C# (CSharp) 메소드

TryPackOpen() 공개 정적인 메소드

public static TryPackOpen ( BaseCreature animal, Mobile from ) : void
animal BaseCreature
from Mobile
리턴 void
        public static void TryPackOpen( BaseCreature animal, Mobile from )
        {
            if ( animal.IsDeadPet )
                return;

            Container item = animal.Backpack;

            if ( item != null )
                from.Use( item );
        }

Usage Example

예제 #1
0
 public override void OnDoubleClick(Mobile from)
 {
     PackAnimal.TryPackOpen(this, from);
 }
All Usage Examples Of Server.Mobiles.PackAnimal::TryPackOpen