Created
January 4, 2016 21:04
-
-
Save mhomol/cf4004d804328323abc6 to your computer and use it in GitHub Desktop.
Bag Labs Post - 3D Runner - Moving Obstacles pt. 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Update () | |
{ | |
if (running == true) | |
{ | |
updateCubePosition (-4.0f, 0f, -22, "Cube1"); | |
//Keep adding for new cubes, make sure tag name matches, and change the range for the X axis | |
updateCubePosition (0f, 4.0f, -22, "Cube2"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment