// Start is called before the first frame update void Start() { _itm = InputTraceManager.GetInstance(); PopulateList(); _itm.SetFilename(); _chosenLabel.text = _itm.GetFilename(); if (_chosenLabel.text == "") { _chosenLabel.text = "No file recorded yet..."; } }
private void Awake() { // Do not destroy on scene load, for singleton pattern DontDestroyOnLoad(this.gameObject); _savePath = Application.persistentDataPath + _savePath; _seedPath = Application.persistentDataPath + _seedPath; Debug.Log("Input Tracing: Path for saved files is '" + _savePath + "'"); // Assign this as instance if there is none if (_instance == null) { _instance = this; } // Previous instances have priority else { Destroy(this.gameObject); } ReadFiles(); }