Summary

We looked into using Unity's Reference Manual and the Scripting Reference. As a beginner, probably the most time consuming part of writing code will be searching Unity's documentation for the information you need. We expanded the State Machine and added a Player GameObject. Planning ahead before writing code is always a good idea. A State Machine is a good option for organizing your project's code. Nine State classes were created for the State machine. We then displayed a splash screen and a button in BeginState. For the SetupState, we displayed a spinning Player and some GUI buttons to set Player options.

A major point to be taken from writing all this code is that public variables and methods in any class or script are easily accessed. ...

Get Learning C# by Developing Games with Unity 3D Beginner's Guide 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.