void Awake() { // This is a SingleTON of stuff if (instance != null && instance != this) { Destroy(gameObject); return; } instance = this; DontDestroyOnLoad(gameObject); SceneManager.activeSceneChanged += ActiveSceneChanged; bt = Bluetooth.GetInstance(); }
private void Awake() { bluetooth = Bluetooth.GetInstance(); startTime = System.DateTime.Now; }