// Use this for initialization void Start() { Listener = bvr_Listener.Get; if (rgcontrol == null) { rgcontrol = gameObject.GetComponent <RigidbodyFirstPersonController>(); } if (Listener.IsConnected()) { rgcontrol.enabled = false; } Subscribe(); var oldRotation = gameObject.transform.rotation; }
private void EEGActions() { if (!Listener || !Listener.IsConnected()) { return; } //rotation of the object if (_previousConcentrated != _concentrated) { if (_concentrated) { DoThinkingUp(); } else { DothinkingDown(); } } _previousConcentrated = _concentrated; }