Hi, I have 10 (Null) objects and I want to activate them as Score Object or Death Object, but I want to activate them randomly at random time between 5-15 seconds.
I thought to make 2 scripts one for score and one for death and use something like this to enable one of the script. but how can I achieve it randomly?gameObject.GetComponent<Score> ().enabled = true;
LE: Or a better way should be to randomly generate a number from 1-10 and if the number = Object name randomly activate one of the scripts on that object?
This way you will have an array of gameobjects that changes every 5-15 seconds with randomly changed score or death at positions 0-9. I’ll gladly help you if there’re other problems.