IEnumerator LoadScene() { fadePanel.FadeIn(); yield return(new WaitForSeconds(0.5f)); SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1); }
IEnumerator FadeIn() { panel.SetActive(true); fadePanel.FadeIn(); yield return(new WaitForSeconds(0.5f)); SceneManager.LoadScene("Level1"); }
// 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; }
public void OnFadeIn() { FadePanel.FadeIn(1); }
public void FadeIn(Action callback) { fadePanel.FadeIn(callback); }
private void showFadeIn() { base.Show(); _fadePanel.FadeIn(); }
public void Lose() { DiedPanel.TrySetActive(true); FadePanel.FadeIn(); }