Planting additional cherry trees

Since our sandbox is a smaller representation of our larger game environment, we will need one or more cherry trees. As you will recall, the Cucumber Man will collect cherries from the cherry trees and use them to launch ranged attacks on the Cucumber Beetles.

In Chapter 6, Creating and Importing 3D Objects for Our Game, we imported our Cherry Tree object and modified it for our game. Now, we can simply add additional cherry trees to our sandbox area. You can drag the CherryTreeCollider from Projects | Assets | Prefabs directly into your sandbox area in the Scene view.

Next, you will want to zoom into the sandbox area, using the Scene view, to ensure that your trees are not above the ground or in need of additional ...

Get Getting Started with Unity 2018 - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.