void Start() { goToNext.SetActive(false); textContent = contentManager.GetComponent <TaskContentIntegration> (); writer = contentManager.GetComponent <CsvWrite> (); timeAtStart = Time.fixedTime; }
//This allows the start function to be called only once. void Awake() { if (instance != null && instance != this) { Destroy(this.gameObject); return; } else { instance = this; } DontDestroyOnLoad(this.gameObject); }