Skip to content

Commit

Permalink
Added ability to progress between level scenes
Browse files Browse the repository at this point in the history
  • Loading branch information
bedder committed Nov 28, 2014
1 parent 153c918 commit 1d55ad1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Assets/Scripts/LevelGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ void Awake ()
{
gameController = GameObject.FindObjectOfType<GameController>();
prefab_player = (GameObject)gameController.playerController;
gameController.nextLevel = (gameController.nextLevel + 1) % Application.levelCount; // Make sure we load the next level upon completion

//Initialize objects
Vector2[] startGoalCells;
Expand Down

0 comments on commit 1d55ad1

Please sign in to comment.