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();
    }
Beispiel #2
0
 private void Awake()
 {
     bluetooth = Bluetooth.GetInstance();
     startTime = System.DateTime.Now;
 }