Ejemplo n.º 1
0
 public void OnReturnToHomeButton()
 {
     if (!_isLocked)
     {
         whiteScreen.gameObject.SetActive(true);
         whiteScreen.FadeIn();
         LeanTween.delayedCall(gameObject, 0.3F, () => SceneManager.LoadScene("Home"));
         StartCoroutine(LockTemporally(0.2F));
     }
 }
Ejemplo n.º 2
0
 public void SwitchScene(string sceneName)
 {
     whiteScreen.FadeIn(0.25F, 0.1F);
     LeanTween.delayedCall(gameObject, 0.9F, () => SceneManager.LoadScene(sceneName));
 }