Exemple #1
0
 private void Hotkeys()
 {
     if (BDInputUtils.GetKeyDown(BDInputSettingsFields.VS_SWITCH_NEXT))
     {
         SwitchToNextVessel();
     }
     if (BDInputUtils.GetKeyDown(BDInputSettingsFields.VS_SWITCH_PREV))
     {
         SwitchToPreviousVessel();
     }
 }
Exemple #2
0
 void HotKeys()
 {
     if (BDInputUtils.GetKeyDown(BDInputSettingsFields.TOURNAMENT_SETUP))
     {
         BDATournament.Instance.SetupTournament(BDArmorySettings.VESSEL_SPAWN_FILES_LOCATION, BDArmorySettings.TOURNAMENT_ROUNDS, BDArmorySettings.TOURNAMENT_VESSELS_PER_HEAT);
     }
     if (BDInputUtils.GetKeyDown(BDInputSettingsFields.TOURNAMENT_RUN))
     {
         BDATournament.Instance.RunTournament();
     }
 }
Exemple #3
0
 private void Hotkeys()
 {
     if (BDArmorySettings.MULTIPLAYER_ACTIVE)
     {
         return;
     }
     if (BDInputUtils.GetKeyDown(BDInputSettingsFields.VS_SWITCH_NEXT))
     {
         SwitchToNextVessel();
     }
     if (BDInputUtils.GetKeyDown(BDInputSettingsFields.VS_SWITCH_PREV))
     {
         SwitchToPreviousVessel();
     }
 }
Exemple #4
0
        IEnumerator RecordKeyRoutine()
        {
            while (!valid)
            {
                if (mouseUp)
                {
                    string iString = BDInputUtils.GetInputString();
                    if (iString.Length > 0)
                    {
                        inputString = iString;
                        valid       = true;
                    }
                }

                if (Input.GetKeyUp(KeyCode.Mouse0))
                {
                    mouseUp = true;
                }
                yield return(null);
            }
        }