Пример #1
0
 public override void Scroll()
 {
     currentMode = SecondControllPanel.Do().GetListenMode();
     if (currentMode != null)
     {
         for (int i = 0; i < modes.Length; i++)
         {
             if (modes[i].GetType() == currentMode.GetType())
             {
                 if (i < modes.Length - 1)
                 {
                     SecondControllPanel.Do().SetListenMode(modes[i + 1]);
                 }
                 else if (i >= modes.Length - 1)
                 {
                     SecondControllPanel.Do().SetListenMode(modes[0]);
                 }
                 ShowCurrentMode();
             }
         }
     }
     else
     {
         Debug.Log("Установите значение для Listen");
     }
 }
Пример #2
0
 private void Update()
 {
     currentMode = SecondControllPanel.Do().GetRadioMode();
     if (currentMode.GetType() != typeof(KVmode))
     {
         ScrollButtonRotate(currentMode.GetRotateAngle());
     }
     else
     {
         ScrollButtonRotate(190);
     }
 }
Пример #3
0
    public override void Scroll()
    {
        currentValue = SecondControllPanel.Do().GetSpuValue();

        for (int i = 0; i < values.Length; i++)
        {
            if (values[i] == currentValue)
            {
                if (i < values.Length - 1)
                {
                    SecondControllPanel.Do().SetSpuVale(values[i + 1]);
                }
                else if (i >= values.Length - 1)
                {
                    SecondControllPanel.Do().SetSpuVale(values[0]);
                }
                ShowCurrentMode();
            }
        }
    }
Пример #4
0
 private void Update()
 {
     currentMode = SecondControllPanel.Do().GetListenMode();
     ScrollButtonRotate(currentMode.GetRotateAngle());
 }
Пример #5
0
 private void Start()
 {
     currentMode = SecondControllPanel.Do().GetListenMode();
     currentMode = new DisableMode();
 }
Пример #6
0
 public override void ShowCurrentMode()
 {
     WindowsSystem.Do().ShowShortDecription("Режим нижней ручки сдвоенного поворотного переключателя установлен в: " + SecondControllPanel.Do().GetListenMode().GetDescription());
 }
Пример #7
0
 void Update()
 {
     currentValue = SecondControllPanel.Do().GetSpuValue();
     ScrollButtonRotate(190 + currentValue);
 }
Пример #8
0
 public override void ShowCurrentMode()
 {
     WindowsSystem.Do().ShowShortDecription("Значение нижней ручки сдвоенного поворотного переключателя установлено в: " + SecondControllPanel.Do().GetSpuValue());
 }
Пример #9
0
 private void Start()
 {
     currentMode = SecondControllPanel.Do().GetRadioMode();
     currentMode = new UKV1mode();
 }