void Awake() { Debug.Log ("VisualUtilies::Awake() called"); if (VUInstance == null) { VUInstance = this; } else if (VUInstance != this) { Destroy (gameObject); } DontDestroyOnLoad(gameObject); Init(); }
void Awake() { Debug.Log("VisualUtilies::Awake() called"); if (VUInstance == null) { VUInstance = this; } else if (VUInstance != this) { Destroy(gameObject); } DontDestroyOnLoad(gameObject); Init(); }