Esempio n. 1
0
    IEnumerator LoadScene()
    {
        fadePanel.FadeIn();
        yield return(new WaitForSeconds(0.5f));

        SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
    }
Esempio n. 2
0
    IEnumerator FadeIn()
    {
        panel.SetActive(true);
        fadePanel.FadeIn();
        yield return(new WaitForSeconds(0.5f));

        SceneManager.LoadScene("Level1");
    }
Esempio n. 3
0
    // Use this for initialization
    void Start()
    {
        //不允许玩家操作
        PlayerControl player = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerControl>();

        player.UnPlayable();

        m_FadePanel.FadeIn(FADE_TIME);

        this.next_step = STEP.TITLE;
    }
Esempio n. 4
0
 public void OnFadeIn()
 {
     FadePanel.FadeIn(1);
 }
Esempio n. 5
0
 public void FadeIn(Action callback)
 {
     fadePanel.FadeIn(callback);
 }
Esempio n. 6
0
    private void showFadeIn()
    {
        base.Show();

        _fadePanel.FadeIn();
    }
Esempio n. 7
0
 public void Lose()
 {
     DiedPanel.TrySetActive(true);
     FadePanel.FadeIn();
 }