So, if you remember, in the last post I wrote about an assignment I had for one of my classes on making a scene in Unity and having a script assign a color to the box. This week, we were given a follow-up assignment in which we were to add to our previous build and make a script that would essentially store each color from each box in an array and then allow you to recall the color from that box and place it back on that same box. The following is a video showing my final product and the functionality. As I state in the video, there is a bug that no matter what I did, I could not get it to go away. The following is the script I used for this assignment. var objects : GameObject[]; var originalColor : Color[]; function Start () { originalColor = new Color[10]; originalColor[0] = GameObject.Find("Cube0").re...
Comments
Post a Comment