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> (); 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> (); }