//This allows the start function to be called only once.
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     DontDestroyOnLoad(gameObject);
 }
 private void Awake()
 {
     _csvWriter = CsvWrite.instance;
 }