Пример #1
0
 public void ActiveMotorRegions(int[] regions, int impact, OpenGlove_API_C_Sharp_HL.ServiceReference1.Glove glove)
 {
     if (glove != null)
     {
         foreach (int region in regions)
         {
             openGloveAPI.Activate(glove, region, 255);
         }
     }
 }
Пример #2
0
        public IEnumerator DeactiveMotorRegions(float seconds, int[] regions, int impact, OpenGlove_API_C_Sharp_HL.ServiceReference1.Glove glove)
        {
            if (glove != null)
            {
                yield return(new WaitForSeconds(seconds));

                foreach (int region in regions)
                {
                    openGloveAPI.Activate(glove, region, 0);
                }
            }
        }