Пример #1
0
    private void Update()
    {
        if (!Datas.PlayGame && IsEnded)
        {
            IsEnded = false;

            if (Datas.GameModeHard)
            {
                currLederboard = Datas.LederboardsGame2;
            }
            else
            {
                currLederboard = Datas.LederboardsGame1;
            }

            Datas.CheckRecordInLederboard(currLederboard, Datas.CurrentGameScore, Datas.NameOfPlayer);
            Refresh(currLederboard);
        }
    }