コード例 #1
0
    private IEnumerator TwitchHandleForcedSolve()
    {
        if (!Interact.isActive)
        {
            SubModuleSelectable.OnInteract();
        }
        while (!Interact.isActive)
        {
            yield return(true);
        }

        if (!Interact.isSubmitting)
        {
            SubModuleSelectable.OnInteract();
        }
        while (!Interact.isSubmitting || Interact.isRotating || (Interact.Dimension == 10 && Interact.GetPreciseLastDigitOfTimer > 9.75f))
        {
            yield return(true);
        }

        int[][] answer = Interact.GetAnswer(ZenModeActive);
        for (int i = 0; i < answer.Length; i++)
        {
            while (Interact.GetLastDigitOfTimer != (Interact.Dimension > 10 ? 19 : 9) || (Interact.GetPreciseLastDigitOfTimer > 9.125f && Interact.Dimension == 10))
            {
                yield return(true);
            }

            for (int j = 0; j < answer[i].Length; j++)
            {
                while (Interact.GetLastDigitOfTimer != answer[i][j])
                {
                    yield return(null);
                }
                SubModuleSelectable.OnInteract();
            }
        }

        while (!IsSolved)
        {
            yield return(true);
        }
    }