(JS) Makeing demo version of game (15 minutes of demo)
Hi, Im makeing a game and now I want to make demo version of it. This it what I have: #pragma strict
 var timeLeft = 10000;
 
 function Awake () {
     DontDestroyOnLoad (transform.gameObject);
 }
 
 function Update () {
     timeLeft -= Time.deltaTime;
 }
 
 function OnGUI(){
     GUI.Box (Rect(1, 1, 100, 25), "Time left: " + timeLeft);
 
     if (timeLeft < 1){
         Application.LoadLevel (9);
     }
 
 }
It is working but I still need some secure, because when someone leave game and open it again he has still his time.
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                