public void ConfirmItem() { inEditing = false; mainCam.ToggleItemLoader(); uiManagerScript.IsPlacingItem(); string itemLoc = (!browsingPurchased) ? "TownPrefabs/" + itemNames[currIndex] : "StoreItems/" + storeDataObjects[purchasedItemsIndex].location; itemController.GetComponent <ItemPlacementController>().HandleNewObj(itemLoc); }
public void ConfirmItem() { inEditing = false; mainCam.ToggleItemLoader(); uiManagerScript.IsPlacingItem(); string itemName = items[currentBrowsingType][currIndex].name; itemName = itemName.Substring(0, itemName.Length - 7); itemController.GetComponent <ItemPlacementController>().HandleNewObj(itemName); }