예제 #1
0
    // Update is called once per frame
    void Update()
    {
        names.text  = ScoreManager.Instance.leaderBoardPositionsString;
        scores.text = ScoreManager.Instance.leaderBoardScoresString;

        if (Input.GetKeyDown(KeyCode.Escape) && canTransition)
        {
            Application.Quit();
            return;
        }

        if (Input.anyKeyDown && !moreButton.IsHovered() && !quitButton.IsHovered() && canTransition)
        {
            AudioManager.Instance.PlayEffectAt(2, Vector3.zero, 0.713f);
            AudioManager.Instance.PlayEffectAt(1, Vector3.zero, 0.081f);
            AudioManager.Instance.PlayEffectAt(15, Vector3.zero, 1f);
            AudioManager.Instance.PlayEffectAt(20, Vector3.zero, 0.251f);
            AudioManager.Instance.PlayEffectAt(24, Vector3.zero, 0.332f);

            SceneChanger.Instance.ChangeScene("Main");
        }
    }