コード例 #1
0
 public void defaultProfile()
 {
     drivers        = defaultDrivers();
     passengers     = defaultPassengers();
     symbolType     = SymbolType.ExampleMath;
     textureSymbols = defaultTextureSymbols();
     numberRange    = defaultNumbers();
     letters        = defaultLetters();
     customMappings = defaultCustomMappings();
     exampleMath    = exampleMathMappings();
     exampleEnglish = exampleEnglishMappings();
 }
コード例 #2
0
        public void ProcessInput(InputState input)
        {
            ConsoleAction action;

            if (ActionDefinitions.TryGetAction(input, out action))
            {
                ProcessAction(action);
            }
            else
            {
                for (int i = 0; i < input.PressedKeys.Count; i++)
                {
                    Keys   key = input.PressedKeys[i];
                    Symbol symbol;
                    if (SymbolMappings.TryGetValue(key, out symbol))
                    {
                        ProcessSymbol(symbol);
                    }
                }
            }
        }
コード例 #3
0
 public static void Modify(SymbolMappings pickable)
 {
     CustomSetPicker.pickable      = pickable;
     CustomSetPicker.PreviousScene = SceneManager.GetActiveScene().name;
     SceneManager.LoadScene("CustomSetPick");
 }