Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1.  
  2. SceneManager.prototype.goToNextScene = function()
  3. {
  4. console.log("go to next scene")
  5. console.log(this.count);
  6. this.count = (this.count + 1) % this.scenes.length;
  7. }
  8.  
  9.  
  10. SceneManager.prototype.getNextScene = function()
  11. {
  12. if( this.count == 0)
  13. return this.scenes[0];
  14. if( this.count == 1)
  15. return this.scenes[1];
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement