Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var num : int = 0;
- function Start(){
- num = PlayerPrefs.GetInt("TheGame");
- }
- function Update(){
- if(Input.GetMouseButtonDown(0)){
- PlayerPrefs.SetInt("TheGame", 5);
- }
- }
- function FixedUpdate(){
- if(num == 5){
- Application.LoadLevel("Level1");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment