コード例 #1
0
 static void HandleRearViewToggle()
 {
     if (UIManager.m_menu_selection == 11)
     {
         RearView.Toggle();
         MenuManager.PlayCycleSound(1f, (float)UIManager.m_select_dir);
     }
 }
コード例 #2
0
 static void Prefix()
 {
     if (GameplayManager.IsMultiplayerActive)
     {
         return;
     }
     foreach (char c in Input.inputString)
     {
         if (code[codeIdx] == c)
         {
             if (++codeIdx < code.Length)
             {
                 continue;
             }
             else
             {
                 RearView.Toggle();
             }
         }
         codeIdx = 0;
     }
 }