Exemplo n.º 1
0
    // 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;
    }
Exemplo n.º 2
0
 private void EEGActions()
 {
     if (!Listener || !Listener.IsConnected())
     {
         return;
     }
     //rotation of the object
     if (_previousConcentrated != _concentrated)
     {
         if (_concentrated)
         {
             DoThinkingUp();
         }
         else
         {
             DothinkingDown();
         }
     }
     _previousConcentrated = _concentrated;
 }