Menu Close

Awake and Start

What I learned

-I learned how to use the functions Start and Awake. Awake is called when the scene begins, even if the code is disabled. Start is called after Awake only when the code is enabled. The example used by the video is that you could use Awake to assign the enemy with ammo, but use Start to allow them to shoot when it is actually needed. As you can see in my video, using the Debug.Log function, depending on whether I enable the code, depends whether the Start function shows up.

Leave a Reply

Your email address will not be published. Required fields are marked *