In: Computer Science
USE C# to write this.
1.To the capsule, add a script called “MoveIt”. This will make the capsule move repeatedly between (3, 0, 0) and (-3, 0, 0), moving 1 unit per second, moving in the positive direction initially. [Note: The capsule should move toward (3,0,0) from its initial location of (0,1,0) and then move toward (-3,0,0), etc.]
2.To the yellow cube, add a script called “RotateIt”. This will make the cube rotate (30, 60, 90) per second.
3. Lastly, make a script called “ResizeIt”. This will make the purple sphere scale up to 4 times its original size, and then back down to its original size, repeatedly. It should increase in scale on all dimensions at 1 unit per second