Exemple #1
0
    void RunChild()
    {
        InputType input;

        if (HasMoved)
        {
            input = MyInput.GetInput();
            inputList.Add(input);
            HandleMove(input);
        }
        else
        {
            // Only record after pressing a directional key
            input = MyInput.GetInputDown();
            if (input != InputType.None)
            {
                inputList.Add(input);
                HandleMove(input);
            }
        }
    }