Now that we have two animated rectangles, we will make them interactive with the GGV that we talked about earlier in this chapter. In order to do this, we will first set up our Mecanim nodes and the parameter that we need for them to work.
Once this is done, we will write our first C# script. It will be a very simple script, and since we will not be covering script writing just now, only the very basics will be explained.
If you do not currently have an Animator view open, with LeftRect selected in our Hierarchy view, click on Window followed by Animator to bring this window up:
As mentioned in the preceding section, ...