예제 #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");
    }
예제 #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);
    }
예제 #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);
    }
예제 #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());
    }