Пример #1
0
    public void Init(int nStage)
    {
        this.nStage = nStage;
        btnStage.Init(StartGame);
        btnStage.SetText(nStage.ToString());
        SetStartPosition();

        if (UserDataManager.Instance.currDifficulty == Difficulty.Easy)
        {
            btnStage.SetStyle(E_COMMON_BUTTON_STYLE.COMMON_STAGE_EASY);
        }
        else if (UserDataManager.Instance.currDifficulty == Difficulty.Normal)
        {
            btnStage.SetStyle(E_COMMON_BUTTON_STYLE.COMMON_STAGE_NORMAL);
        }
        else if (UserDataManager.Instance.currDifficulty == Difficulty.Hard)
        {
            btnStage.SetStyle(E_COMMON_BUTTON_STYLE.COMMON_STAGE_HARD);
        }
    }