void endlevelup()
 {
     LvlCannon.SetActive(false);
     LvlMissile.SetActive(false);
     LvlShield.SetActive(false);
     LvlText.SetActive(false);
 }
    void PlayerLevelUp()
    {
        isLvling = true;
        Exp      = 0;
        if (MyLevel == 1)
        {
            LvlCannon.SetActive(true);
            LvlText.SetActive(true);
            ShootThrottle -= 5;
        }
        if (MyLevel == 2)
        {
            LvlMissile.SetActive(true);
            LvlText.SetActive(true);
            MissileAddedDamage += 8;
        }
        if (MyLevel == 3)
        {
            LvlShield.SetActive(true);
            LvlText.SetActive(true);
            ShieldRegenRate += 0.001f;
        }

        if (MyLevel == 4)
        {
            LvlCannon.SetActive(true);
            LvlText.SetActive(true);
            ShootThrottle -= 3;
        }
        if (MyLevel == 5)
        {
            LvlCannon.SetActive(true);
            LvlText.SetActive(true);
            ShootThrottle -= 3;
        }
        if (MyLevel == 6)
        {
            LvlCannon.SetActive(true);
            LvlText.SetActive(true);
            ShootThrottle -= 2;
        }
        if (MyLevel == 7)
        {
            LvlCannon.SetActive(true);
            LvlText.SetActive(true);
            ShootThrottle -= 2;
        }
        if (MyLevel == 8)
        {
            LvlMissile.SetActive(true);
            LvlText.SetActive(true);
            MissileAddedDamage += 5;
        }
        MyLevel++;
    }