Beispiel #1
0
    IEnumerator ChangeLevel()
    {
        // fade out the game and load a new level
        yield return(new WaitForSeconds(2f));           // waits for animation to stop playing

        LoadingScreen ls = LoadingScreen.FindObjectOfType(typeof(LoadingScreen)) as LoadingScreen;

        ls.LoadScene("Story");
    }
Beispiel #2
0
    void Awake()
    {
        // Prep
        string temp = storyTextObject.text;

        string[] storyArray = temp.Split('*');

        storyArray_Hiragana = storyArray[0].Split('-');
        storyArray_Romanji  = storyArray[1].Split('-');
        storyArray_English  = storyArray[2].Split('-');

        ls    = LoadingScreen.FindObjectOfType(typeof(LoadingScreen)) as LoadingScreen;
        first = true;
        Invoke("StartGame", 0.1f);
    }
Beispiel #3
0
    void Awake()
    {
        // Prep
        string temp = storyTextObject.text;

        string[] storyArray = temp.Split('*');

        storyArray_Hiragana = storyArray[0].Split('~');
        storyArray_Romanji  = storyArray[1].Split('~');
        storyArray_English  = storyArray[2].Split('~');

        fade = GetComponent <Fading>();
        ls   = LoadingScreen.FindObjectOfType(typeof(LoadingScreen)) as LoadingScreen;
        izanagiShore.SetActive(false);
        first = true;
        Invoke("StartGame", 0.1f);
    }
Beispiel #4
0
    void Awake()
    {
        textCanvasObject.SetActive(false);
        fade = this.GetComponent <Fading>();

        // Prep
        string temp = storyTextObject.text;

        string[] storyArray = temp.Split('*');

        storyArray_Hiragana = storyArray[0].Split('-');
        storyArray_Romanji  = storyArray[1].Split('-');
        storyArray_English  = storyArray[2].Split('-');

        ls           = LoadingScreen.FindObjectOfType(typeof(LoadingScreen)) as LoadingScreen;
        first        = true;
        currentSlide = 0;
        StartCoroutine(Prolouge());
    }