Example #1
0
    public void Start()
    {
        //style.fontSize = 30;
        style.font       = (Font)Resources.Load("Robustik");
        style.alignment  = TextAnchor.MiddleCenter;
        currentChallenge = UFE.config.selectedChallenge;
        challengeActions = new List <ActionSequence>(UFE.GetChallenge(currentChallenge).actionSequence);

        Run();
    }
Example #2
0
    public void OnGUI()
    {
        if (UFE.GetChallenge(currentChallenge).description != "" &&
            !complete &&
            !UFE.config.lockInputs &&
            !UFE.config.lockMovements)
        {
            if (GUI.Button(new Rect(Screen.width - 120, 50, 70, 30), "Skip"))
            {
                moveToNext = false;
                complete   = true;
                UFE.fluxCapacitor.EndRound();
            }

            GUI.Box(new Rect(0, 150, Screen.width, 40), UFE.GetChallenge(currentChallenge).description, style);
            //GUI.Box(new Rect(0, Screen.height - 60, Screen.width, 40), UFE.GetChallenge(currentChallenge).description);

            /*GUI.BeginGroup(new Rect(0, Screen.height - 100, Screen.width, 100));
             * {
             *  GUILayout.Label(UFE.GetChallenge(currentChallenge).description);
             * } GUI.EndGroup();*/
        }
    }
Example #3
0
    private void testChallenge()
    {
        if (currentAction == challengeActions.Count)
        {
            if (UFE.GetChallenge(currentChallenge).challengeSequence == ChallengeAutoSequence.MoveToNext)
            {
                moveToNext = true;
                if (UFE.GetChallenge(currentChallenge).resetData)
                {
                    resetRound = true;
                }

                currentChallenge++;
                challengeActions = new List <ActionSequence>(UFE.GetChallenge(currentChallenge).actionSequence);
            }
            else
            {
                moveToNext = false;
            }

            complete = true;
        }
    }