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