босс
This commit is contained in:
1 parent
76b6566e46
commit
11d290d572
49 files changed
+2562
-587
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user