Skip to Main Content
Unity 2018 By Example - Second Edition
book

Unity 2018 By Example - Second Edition

by Alan Thorn
July 2018
Beginner content levelBeginner
484 pages
9h 36m
English
Packt Publishing
Content preview from Unity 2018 By Example - Second Edition

Ammo and hazards

Level 2 is a hazardous place. It should feature not only pits and holes leading to kill zones, but also fixed dangers such as gun turrets that can shoot the player. This section focuses on their creation. To get started, let's make a gun turret. Now, the course companion files don't include a texture or image for the gun turrets, but when using the dark silhouette style as we are here, we can easily make a consistent turret prop from primitives. In particular, create a new cube object (GameObject | 3D Object | Cube), rescale it to approximate a gun turret, and then position it to the upper ledge in the scene where it will appear as part of the scenery. See Figure 6.22. Note that you can also use the Rect Transform tool to resize ...

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.
Start your free trial

You might also like

Unity 2020 By Example - Third Edition

Unity 2020 By Example - Third Edition

Robert Wells
Unity 2018 Cookbook - Third Edition

Unity 2018 Cookbook - Third Edition

Matt Smith, Chico Queiroz, Jate Wittayabundit

Publisher Resources

ISBN: 9781788398701Supplemental Content