Searching for the player reference inside Update

Is there any reason for why the instructor is searching for the Player reference each frame, instead of getting it inside Start? Are there any advantages to doing it so?

Usually, this is something we do when we are prototyping and getting a setup working. Don’t worry, Sam will refactor this in a later lecture to do exactly that, cache the player in Awake().

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms