Exemplo n.º 1
0
    private void LevelPlus(int pts)
    {
        level        += 1;
        levelLimScore = (level * 9 - 4) * (level + 2);
        if (pts > levelLimScore)
        {
            LevelPlus(pts);
        }
        else if (pts <= levelLimScore)
        {
            uiController.SetLevel(this, level);
        }

        if (level >= 8 && weaponLevel == WeaponLevel.TANK)
        {
            weaponLevel = WeaponLevel.BULLETSHTORMERR;
            OnUpWeapon();
        }
    }