Exemple #1
0
 void Awake()
 {
     control = GetComponent<SimpleAnimationController> ();
     fileinfo = new FileInfo (Application.persistentDataPath + "\\" + filename);
     Debug.Log (Application.persistentDataPath + "\\" + filename);
     isFirstTime = !fileinfo.Exists;
     if(isFirstTime)
     {
         startButton.interactable = false;
     }
     else
     {
         startButton.interactable = true;
     }
 }
Exemple #2
0
 void Awake()
 {
     control  = GetComponent <SimpleAnimationController> ();
     fileinfo = new FileInfo(Application.persistentDataPath + "\\" + filename);
     Debug.Log(Application.persistentDataPath + "\\" + filename);
     isFirstTime = !fileinfo.Exists;
     if (isFirstTime)
     {
         startButton.interactable = false;
     }
     else
     {
         startButton.interactable = true;
     }
 }
 void Awake()
 {
     control = GetComponent<SimpleAnimationController> ();
 }