Ejemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.I))
     {
         _value++;
         _irCharacteristic.UpdateValue(BitConverter.GetBytes(_value));
     }
 }
Ejemplo n.º 2
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKey(KeyCode.W))
     {
         _timer += Time.deltaTime;
         if (_timer > Interval)
         {
             _timer -= Interval;
             _value++;
             _irCharacteristic.UpdateValue(BitConverter.GetBytes(_value));
         }
     }
 }