Game Development Reference
In-Depth Information
Below that yield return new line, add:
4.
beak.SetBool("Cue the Beak", true); // trigger the beak drop
5.
Save the script, and select the Zombie Spawn Manager object.
6.
Drag the Lower Beak object onto its Beak parameter.
7.
Click Play, and watch the action when the stork makes his drop runs.
8.
Stop Play mode.
Next up is the bundle. It will require multiple clips.
1.
Select the first three sprites in the Bundle asset in the Project view.
2.
Drag them into the Scene view.
3.
Name the new animation clip Bundle Carry , and save it in the Animation
Clips folder.
4.
In the Animation Editor, drag another Bundle_1 sprite to the end to make a
better looping animation.
Rename the object Bundle , and position it at the beak.
5.
6.
Adjust the Z position until the bundle is in back of the stork but in front of the
Lower Beak (Figure 9-45 ).
Figure 9-45. The Bundle in position
7.
Add the Bundle object to the Sprite layer, and then drag it into the Stork Group.
8.
Click Play, and watch the assets fly by.
Search WWH ::




Custom Search