void Awake() { if (Instance == null) { Instance = this; gameObject.name = "BLEControllerInitializer"; GameObject.DontDestroyOnLoad(this.gameObject); } else { GameObject.Destroy(this.gameObject); } }
void Awake() { if(Instance == null) { Instance = this; gameObject.name = "BLEControllerInitializer"; GameObject.DontDestroyOnLoad(this.gameObject); } else { GameObject.Destroy(this.gameObject); } }