//Awake is always called before any Start functions void Awake() { if (metricsController == null) { metricsController = this; } else if (metricsController != this) { Destroy(gameObject); } DontDestroyOnLoad(gameObject); csvReadWriter = new CsvReadWriter(); }
void Awake() { if (metricsController == null) metricsController = this; else if (metricsController != this) Destroy(gameObject); DontDestroyOnLoad(gameObject); }