Tut43: Extra exercise.

Following along with BurgZergArcade’s tutorials. As part of a series of commentary, here’s a homework assignment aimed at introductory level programmers.

 

Can you change your log statements in GameMaster.cs for the Spawn Point to say the following?:

Created: Player Spawn Point

Moved Player Spawn Point to (50, 5, 100)

Where “Player Spawn Point” is not a string. This should be the value that you entered in the constant! The numbers should be the x, y and z of your spawn point.

Answer:

Debug.Log("Created: " + GameSettings.PLAYER_SPAWN_POINT );
Debug.Log("Moved Player Spawn Point to " + _playerSpawnPointPos.ToString() );

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: