If I have a float called object value, that can be changed or assigned through any script and I have an object array, and I want to select an object from the “object array” in relation to the object value.
public float objectVal;
public GameObject[] Object;
I want to select or reference
object[0] when objectVal = 0 and object[1] when objectVal = 1, etc.
And after a certain object is selected / referenced, I want to set that object active, while disabling every other object that is not referenced in the “object array”
I know my newbie skills are extremely visible in my question, but I do know some of the terminology and code to use, I just don’t know how to structure and format the code to where it can do what I’m trying to do.