Skip to content

Instantly share code, notes, and snippets.

@mhomol
Created January 4, 2016 21:04
Show Gist options
  • Save mhomol/cf4004d804328323abc6 to your computer and use it in GitHub Desktop.
Save mhomol/cf4004d804328323abc6 to your computer and use it in GitHub Desktop.
Bag Labs Post - 3D Runner - Moving Obstacles pt. 2
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