This commit is contained in:
lapich committed 2026-10-23 15:44:09 +03:00
1 parent 76b6566e46
commit 11d290d572
49 files changed
+2562 -587

No files matched your search

+12 -3
View File
@@ -54,17 +54,26 @@ public class LevelSuccessUI : MonoBehaviour
if (successPanelRoot != null)
successPanelRoot.SetActive(true);
Time.timeScale = 0f;
Time.timeScale = 1f;
Cursor.lockState = CursorLockMode.None;
Cursor.visible = true;
GameAudioSynthesizer.PlaySuccessChime();
StopAllCoroutines();
StartCoroutine(RoutineAutoTransition());
}
private void OnNextLevelClicked()
private System.Collections.IEnumerator RoutineAutoTransition()
{
yield return new WaitForSecondsRealtime(2.0f);
OnNextLevelClicked();
}
public void OnNextLevelClicked()
{
Time.timeScale = 1f;
SceneManager.LoadScene(SceneManager.GetActiveScene().name);
SceneManager.LoadScene("Level2");
}
private void OnMainMenuClicked()