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