private void OnShopDataInitialized(object sender, ShopDataInitializedEventArgs e) { Debug.Log("2UPPER: InventoryItem OnShopDataInitialized"); StoreInitialized = true; int count; Debug.Log(string.Format("2UPPER: InventoryOnStoreControllerInitialized ItemId: {0}", this.ItemId)); if (ShopManager.GoodsBalances.TryGetValue(this.ItemId, out count)) { Debug.Log( string.Format("2UPPER: InventoryOnStoreControllerInitialized Found - ItemId: {0}, Count: {1}", this.ItemId, count)); this.Quantity.text = "Quantity: " + count.ToString("D"); } else { Debug.Log(string.Format("2UPPER: InventoryOnStoreControllerInitialized - ItemId: {0}, NotFound", this.ItemId)); this.Quantity.text = "Quantity: 0"; } }
private void OnShopDataInitialized(object sender, ShopDataInitializedEventArgs e) { Debug.Log("2UPPER: InventoryItem OnShopDataInitialized"); StoreInitialized = true; int count; Debug.Log(string.Format("2UPPER: InventoryOnStoreControllerInitialized ItemId: {0}", this.ItemId)); if (ShopManager.GoodsBalances.TryGetValue(this.ItemId, out count)) { Debug.Log( string.Format("2UPPER: InventoryOnStoreControllerInitialized Found - ItemId: {0}, Count: {1}", this.ItemId, count)); this.Quantity.text = "Quantity: " + count.ToString("D"); } else { Debug.Log(string.Format("2UPPER: InventoryOnStoreControllerInitialized - ItemId: {0}, NotFound", this.ItemId)); this.Quantity.text = "Quantity: 0"; } }