예제 #1
0
		internal MyoNotifications (BleConnector ble, MyoController controller, int sleep = 0, bool auto = false)
		{
			_ble = ble;
			_controller = controller;
			_auto = auto;
			_threadSleep = sleep;
		}
예제 #2
0
 internal MyoNotifications(BleConnector ble, MyoController controller, int sleep = 0, bool auto = false)
 {
     _ble         = ble;
     _controller  = controller;
     _auto        = auto;
     _threadSleep = sleep;
 }
예제 #3
0
파일: Program.cs 프로젝트: tyounsi/monomyo
 public static void Connect()
 {
     Print("Connecting. Please wait!");
     _myo   = Myo.ConnectEasyPreConfigured("/dev/ttyACM0", NotificationAutoConfigurableValues.All);
     _contr = _myo.Controller;
     Print("Connected");
 }
    void ResetScene()
    {
        if(myo == null) myo = GameObject.Find("Myo");
        _myoTM = myo.GetComponent<ThalmicMyo>();
        //mc = GameObject.Find("Joint").GetComponent<MyoController>();
        mc = MyoController.Instance;
        HoldArmOut = GameObject.Find("HoldArmOut");
        LeftArmSet = GameObject.Find("LeftArm");
        RightArmSet = GameObject.Find("RightArm");
        Text = GameObject.Find("Text");
        TutorialCat = GameObject.Find("TutorialCat");
        TutorialCat.SetActive(false);

        if(am == null) am = GameObject.Find("AudioManager").GetComponent<AudioManager>();
    }
예제 #5
0
    void ResetScene()
    {
        if (myo == null)
        {
            myo = GameObject.Find("Myo");
        }
        _myoTM = myo.GetComponent <ThalmicMyo>();
        //mc = GameObject.Find("Joint").GetComponent<MyoController>();
        mc          = MyoController.Instance;
        HoldArmOut  = GameObject.Find("HoldArmOut");
        LeftArmSet  = GameObject.Find("LeftArm");
        RightArmSet = GameObject.Find("RightArm");
        Text        = GameObject.Find("Text");
        TutorialCat = GameObject.Find("TutorialCat");
        TutorialCat.SetActive(false);

        if (am == null)
        {
            am = GameObject.Find("AudioManager").GetComponent <AudioManager>();
        }
    }
예제 #6
0
 void Start()
 {
     myo = MyoController.Instance;
 }
예제 #7
0
 void Start()
 {
     myo = MyoController.Instance;
 }