I’m very new to programming in unity, and I’m trying to make a simple program to help myself practice. The idea is to click on a button, have three random numbers generated, and then have images change based on each individual number (one image per number). The ways the image could change would be based on referencing other scripts, where each number is pared to an image. Basically, if you pressed the button and the returned numbers were 3,2 and 2, the first image would be the third option, second would be the second, and the third would be the second (from their own pools of images).
Here’s where we come to the root of my problem: I remember in a university course I took last year where a type of public class allowed you to reference multiple game assets. Unfortunately, I can’t remember what the class was, and the professor that taught the course was insistent about the students copy and pasting code, while not explaining how the parts of the code worked.
I have been trying to find the answer to my problem, but all I’m able to find is how to references classes from other scripts, which isn’t what i need. Does anyone know of a reference that lists all the types of public classes (float, int, var, etc.) and what they do in a script? Thank you in advance.