A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community.
Separate names with a comma.
Nevermind I've solved this issue too.
Buy is a script which has been assigned to 5 objects, all of which are active when the game initisalises.
I have managed to solve the random number generation issue, but have no managed to get a new issue "Null reference except: Object not set to an...
Generates a random number and assigns that as the cost of an item.
I've implemented all of the changes and attached all the necessary scripts in the inspector, but they're still all generating the same value not...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class BuyCheapHouse : MonoBehaviour...
After renaming my scripts and altering the code, and removing the semicolon, I now get the error "BuyCheapHouse.buy is a 'field' but a 'type' was...
Okay - but that doesn't help with my problem. Once the problem is fixed I can go through the scripts and do the renaming. I changed the variable...
I tried adding the script in but Unity is giving me an error saying that the variable I have assigned does not exist in the current context. And...
Hi, [Having solved my previous issue of converting bools and ints I've created this one] I'm using an Array to hold my scripts, and within each...
Hmm... I've not used Lists before. I'll look into it. Any suggestions on how to implement it? I did play with using an array but it's one script...
I tried creating an int value on this script that converts the numbers of booleans the player has into an int and then using that to carry out the...
Hi, I'm trying to create an if statement that checks to see how many items a player owns. The items are stored as booleans and I need to convert...
Having incorporated the sell script into the "buy" script and adding the sell function to the OnClick in the inspector, the button simply does...
Okay - solved the crashing issue. I'll try moving the script over - it was just so that as I add more houses, I was planning on using the Sell...
Okay, so I don't know what's happened but now whenever I press the button it crashes Unity. I didn't make any changes to the code yet either. I'll...
The cost is supposed to be generated every 60 seconds, I've just put 1 second for testing purposes so I'm not waiting a minute every time I run to...
Hi, So I'm trying to get a script to take the BuyValue of an object and have that equal the SaleValue so if the player sells the item, it will...
Okay, it works now! The problem I was having before was that the "AllowPurchase" function was simply following after the if statements. But now...
Funnily enough this is what I had when I left the code. I'll see about putting that back in, and seeing if it works this way now.