julong

freeze FirstPersonControls #three

Jul 20th, 2014
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. $('#myModal').modal('show')
  2.  
  3. $('#myModal').css('margin','0');
  4. $('#myModal').css('position','absolute');
  5. $('#myModal').css('top','40%');
  6. //$('#myModal').css('left','50%');
  7. if (moveControls) moveControls.freeze = true;
  8.  
  9.  
  10. }
  11. }
  12. function hide(){
  13. $('#myModal').modal('hide');
  14. if (moveControls) moveControls.freeze = false;
  15. }
  16. function freeze(){
  17. if (moveControls) moveControls.freeze = true;
  18. }
  19. $('#instructions').click(function(){
  20. if(moveControls) moveControls.freeze = false;
  21. $('#instructions').fadeOut('slow');
  22. });
Add Comment
Please, Sign In to add comment