Пример #1
0
    private void InitializeGameStage()
    {
        uIMgr = UImenu.manager;

        PauseWindow quitButton = uIMgr.GetWindow(Menus.Pause) as PauseWindow;

        quitButton.ChangedButton(SceneType.Game);

        clearScore = board.stageData.clearScore;
        moveValue  = board.stageData.move;

        stageBG.sprite = board.stageData.backgroundSprite;

        moveValue  = board.stageData.move;
        clearScore = board.stageData.clearScore;

        stageClearScoreText.text = $"{StaticVariables.ClearScore} {Mathf.FloorToInt(clearScore).ToString("D6")}";
        scoreSlider.maxValue     = clearScore;

        moveText.text = moveValue.ToString();

        currStageState = StageState.Play;

        GameManager.Instance.BackgroundMusicPlay(board.stageData.backgroundMusic);
    }
    public void Start()
    {
        uIMgr = UImenu.manager;

        PauseWindow quitButton = uIMgr.GetWindow(Menus.Pause) as PauseWindow;

        quitButton.ChangedButton(SceneType.StageSelect);

        SetStageNode();

        GameManager.Instance.BackgroundMusicPlay(BGMClip.SelectStage);
        GameManager.Instance.googleMgr.RefreshAchievements();
    }