Beispiel #1
0
 public static CashRegisterManager GetInstance()
 {
     if (instance == null)
     {
         instance = new CashRegisterManager();
     }
     return(instance);
 }
Beispiel #2
0
 public bool PurchaseItem(ItemDrop.ItemData item)
 {
     if (CashRegisterManager.GetInstance().TransferCoinsToCashRegister())
     {
         InventoryManager.GetInstance().TransferItemToPlayer(item);
         StoreMenuUI.Render(InventoryManager.GetInstance().GetInventories(), PurchaseItem);
         return(true);
     }
     return(false);
 }