Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved initialization from Start() to Awake() (googleforgames#1338)
Awake() is more commonly used to initialize variables as it is guaranteed to run as soon as the game object is instantiated or activated. Start() is called before the first Update(), which might be up to a frame later. See Unity docs for reference https://docs.unity3d.com/ScriptReference/MonoBehaviour.Awake.html
- Loading branch information