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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access