public void createShop() { bool valid = false; //Purchase + funds Check if (CharacterCreator.currentPlayerCoin >= 10) { CharacterCreator.currentPlayerCoin = CharacterCreator.currentPlayerCoin - purchaseShopObjects[0].Cost; ch.setPlayerCoin(); valid = true; Debug.Log("shop purchase"); } else { Debug.Log("Not enough funds - 10 coins are needed"); } //Purchase confirmation + Creation if (valid == true) { Debug.Log("creating shop plot"); // Create well on screen --TODO!!! //Storage - Player Storage/SAVE // add Timer + add food?? statsManager.ShopIncomeTimerMethod(); statsManager.ShopExpensesTimerMethod(); //Pay for products / Employees //STORE LEVEL - to be able to upgrade //START INCOME TIMER statsManager.PlayerLevelCheck(); validInstantiate = true; // Allows SpawnObject Script to call method which spawns prefab //Create waterWell / Prefab on screen spawnObjects.SetItemShop(ShopPrefab); spawnObjects.name = "General Store"; // THIS needs updated on upgrade or change of name } }