void Start()
        {
            goToNext.SetActive(false);

            textContent = contentManager.GetComponent <TaskContentIntegration> ();
            writer      = contentManager.GetComponent <CsvWrite> ();

            timeAtStart = Time.fixedTime;
        }
示例#2
0
        //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);
        }