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