Example #1
0
    IEnumerator TutState13()
    {
        Animation anim      = WelcomeImage.GetComponent <Animation>();
        Animation animText  = WelcomeText.GetComponent <Animation>();
        Animation animArrow = JumpingArrow.GetComponent <Animation>();

        UIControl.setLockPauseMenu(true);
        animText.Play("TextDisappear");
        yield return(new WaitForSeconds(0.5f));

        WelcomeText.GetComponent <Text>().text = "Well done! Wave complete!\n The corruption inside you starts to grow...";
        animText.Play("TextAppear");
        yield return(new WaitForSeconds(2f));

        animText.Play("TextDisappear");
        yield return(new WaitForSeconds(2f));

        animText.Play("TextAppear");
        WelcomeText.transform.localPosition        = new Vector3(-233, 238, 0);
        WelcomeText.GetComponent <Text>().fontSize = 45;
        animText.GetComponent <Text>().text        = "Choose a power to drain...";
        UIControl.SetIsPaused(true);
        UIControl.PowerDrainScreen(0, 0);
        TutorialStage = 14;
    }
Example #2
0
    IEnumerator TutState15()
    {
        Animation anim      = WelcomeImage.GetComponent <Animation>();
        Animation animText  = WelcomeText.GetComponent <Animation>();
        Animation animArrow = JumpingArrow.GetComponent <Animation>();

        animText.Play("TextDisappear");
        yield return(new WaitForSeconds(0.5f));

        WelcomeText.GetComponent <Text>().text = "You are no longer immune to death!" +
                                                 "\nPlease kill the final enemy to complete the tutorial!";
        WelcomeText.transform.localPosition        = new Vector3(-547, 271, 0);
        WelcomeText.GetComponent <Text>().fontSize = 60;
        animText.Play("TextAppear");
        Enemy2.SetActive(true);
        TutorialStage = 16;
    }
Example #3
0
    IEnumerator TutState11()
    {
        Animation anim      = WelcomeImage.GetComponent <Animation>();
        Animation animText  = WelcomeText.GetComponent <Animation>();
        Animation animArrow = JumpingArrow.GetComponent <Animation>();

        animText.Play("TextDisappear");
        animArrow.Stop();
        animArrow.Play("jumping arrow disappear");
        yield return(new WaitForSeconds(0.5f));

        Enemy1.transform.position = new Vector3(19.90631f, 1.021423f, -7.240521f);
        WelcomeText.GetComponent <Text>().text = "To attack, press left click. You will fire a magical bullet at the enemy.\nKill this enemy to continue.\n" +
                                                 "You can move by using WASD.\n" +
                                                 "To pause the game, simply press escape during the game.";
        WelcomeText.transform.localPosition = new Vector3(-483, -20, 0);
        Enemy1.SetActive(true);
        animText.Play("TextAppear");
        Cursor.lockState = CursorLockMode.Locked;
        TutorialStage    = 12;
    }
Example #4
0
    IEnumerator TutState9()
    {
        Animation anim      = WelcomeImage.GetComponent <Animation>();
        Animation animText  = WelcomeText.GetComponent <Animation>();
        Animation animArrow = JumpingArrow.GetComponent <Animation>();

        animText.Play("TextDisappear");
        animArrow.Stop();
        animArrow.Play("jumping arrow disappear");
        yield return(new WaitForSeconds(0.5f));

        JumpingArrow.transform.localPosition   = new Vector3(267, 459, 0);
        WelcomeText.transform.localPosition    = new Vector3(460, 575, 0);
        WelcomeText.GetComponent <Text>().text = "This is your point counter.\nThe higher the difficulty,\n the more points you'll get!";
        animText.Play("TextAppear");
        animArrow["jumping arrow appear"].wrapMode = WrapMode.Once;
        animArrow.Play("jumping arrow appear");
        yield return(new WaitForSeconds(0.5f));

        animArrow.Play("jumping arrow left points");
        TutorialStage = 10;
    }
Example #5
0
    IEnumerator TutState17()
    {
        Animation anim      = WelcomeImage.GetComponent <Animation>();
        Animation animText  = WelcomeText.GetComponent <Animation>();
        Animation animArrow = JumpingArrow.GetComponent <Animation>();

        animText.Play("TextDisappear");
        UIControl.setLockPauseMenu(true);
        yield return(new WaitForSeconds(0.5f));

        WelcomeText.GetComponent <Text>().text = "Congratulations! Tutorial complete.\nNow you understand the basic mechanics of Regression!\n" +
                                                 "Good luck in slaying the devil's forces!\n" +
                                                 "Returning to the main menu in 10 seconds.";
        WelcomeText.transform.localPosition        = new Vector3(-547, 271, 0);
        WelcomeText.GetComponent <Text>().fontSize = 60;
        animText.Play("TextAppear");
        UIControl.SetIsPaused(true);
        Cursor.lockState = CursorLockMode.None;
        yield return(new WaitForSeconds(10f));

        SceneManager.LoadScene("UI Scale Testing");
        PlayerPrefs.SetInt("TutorialCompleteStatus", 1);
    }
Example #6
0
    IEnumerator TutState7()
    {
        Animation anim      = WelcomeImage.GetComponent <Animation>();
        Animation animText  = WelcomeText.GetComponent <Animation>();
        Animation animArrow = JumpingArrow.GetComponent <Animation>();

        animText.Play("TextDisappear");
        animArrow.Stop();
        animArrow.Play("jumping arrow disappear");
        yield return(new WaitForSeconds(0.5f));

        JumpingArrow.transform.localPosition = new Vector3(-481, -8, 0);
        JumpingArrow.transform.localRotation = Quaternion.Euler(new Vector3(0, 0, -90));
        WelcomeText.transform.localPosition  = new Vector3(-318, 25, 0);
        animText.GetComponent <Text>().text  = "These are your powers. You can see the effects in the pause menu!";
        animText.Play("TextAppear");
        animArrow["jumping arrow appear"].wrapMode = WrapMode.Once;
        animArrow.Play("jumping arrow appear");
        yield return(new WaitForSeconds(0.5f));

        animArrow.Play("Jumping arrow left");
        TutorialStage = 8;
    }