示例#1
0
 // Set the verse text to the one specified, and fade it in or out
 public void FadeVerse(bool active, int verse = 1)
 {
     if (active && verses [verse - 1] != null)
     {
         textBox.text = verses [verse - 1];
     }
     textFader.Fade(active);
 }
示例#2
0
    // Start the process of game over
    public void EndGame(bool movingOn)
    {
        gameOver = true;

        // If we're moving on, load the next stage
        if (movingOn)
        {
            sceneFade.Fade(true);
            Invoke("LoadNextScene", loadTime);
        }
        // Otherwise, reload this current scene
        else
        {
            Invoke("ReloadScene", loadTime);
        }
    }
示例#3
0
 void Start()
 {
     fader.Fade(false);
 }