Esempio n. 1
0
 //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();
 }
Esempio n. 2
0
 void Awake()
 {
     if (metricsController == null) metricsController = this;
     else if (metricsController != this) Destroy(gameObject);
     DontDestroyOnLoad(gameObject);
 }