FadeUp() public method

public FadeUp ( float fadeTime ) : void
fadeTime float
return void
Esempio n. 1
0
 public void PlayNewMusic()
 {
     //Fade up music nearly instantly without a click
     playMusic.FadeUp(fastFadeIn);
     //Play second music clip from MenuSettings
     playMusic.PlaySelectedMusic(menuSettingsData.musicLoopToChangeTo);
 }
Esempio n. 2
0
 private void PlayMenuMusic()
 {
     // Fade up music nearly instantly without a click
     playMusic.FadeUp(fastFadeIn);
     // Play menu music clip assigned in PlayMusic script
     playMusic.PlayMenuMusic();
 }
Esempio n. 3
0
 public void PlayNewMusic()
 {
     //Fade up music nearly instantly without a click
     playMusic.FadeUp(fastFadeIn);
     //Play music clip assigned to mainMusic in PlayMusic script
     playMusic.PlaySelectedMusic(1);
 }
Esempio n. 4
0
 public void EnableCreditsScreen(int score)
 {
     creditsPanel.transform.Find("ScoreText").gameObject.GetComponent <Text>().text     = score.ToString();
     creditsPanel.transform.Find("BestScoreText").gameObject.GetComponent <Text>().text = PlayerPrefs.GetInt("highscore").ToString();
     creditsPanel.SetActive(true);
     Destroy(GameObject.Find("Canvas"));
     playMusic.FadeUp(.01f);
     playMusic.PlaySelectedMusic(3);
 }
Esempio n. 5
0
    public void PlayNewMusic()
    {
        int musicToChangeTo = UnityEngine.Random.Range(0, playMusic.numberOfSongs);

        if (musicToChangeTo == playMusic.currentTrack)
        {
            musicToChangeTo++;
        }

        playMusic.FadeUp(slowFade);
        playMusic.PlaySelectedMusic(musicToChangeTo);
    }
Esempio n. 6
0
 public void PlayNewMusic()
 {
     _playMusic.FadeUp(fastFadeIn);
     _playMusic.PlaySelectedMusic(1);
 }
Esempio n. 7
0
 public void PlayNewMusic()
 {
     playMusic.FadeUp(fastFadeIn);
     playMusic.PlaySelectedMusic(musicToChangeTo);
 }
    void Deactive()
    {
        playMusic.FadeUp(0.01f);

        gameObject.SetActive(false);
    }