Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SceneManager.prototype.goToNextScene = function()
- {
- console.log("go to next scene")
- console.log(this.count);
- this.count = (this.count + 1) % this.scenes.length;
- }
- SceneManager.prototype.getNextScene = function()
- {
- if( this.count == 0)
- return this.scenes[0];
- if( this.count == 1)
- return this.scenes[1];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement