GameHandler.BuyToInventory C# (CSharp) Méthode

BuyToInventory() public static méthode

public static BuyToInventory ( ItemDropType type, int itemID, int quantity, int price ) : void
type ItemDropType
itemID int
quantity int
price int
Résultat void
    public static void BuyToInventory(ItemDropType type, int itemID, int quantity, int price)
    {
        GameHandler.SubMoney(quantity*price);
        GameHandler.AddToInventory(type, itemID, quantity);
    }
GameHandler