void Start() { controller = GameManager.instance.GetComponent <MindWaveMobile>(); controller.UpdatePoorSignalEvent += OnUpdatePoorSignal; controller.UpdateAttentionEvent += OnUpdateAttention; controller.UpdateMeditationEvent += OnUpdateMeditation; //controller.UpdateDeltaEvent += OnUpdateDelta; }
// Use this for initialization void Awake() { DontDestroyOnLoad(this.gameObject); // make sure there is only ever one game manager if (instance == null) { instance = this; } else if (instance != this) { Destroy(this.gameObject); } // get the MindWaveMobile controller mwmController = GetComponent <MindWaveMobile>(); }