public void Update()
    {
        stage          = gamedata.stage;
        moneytxt.text  = "" + " " + ab.Abbrevs(gamedata.money);
        stagetxt.text  = "" + gamedata.stage;
        killstxt.text  = gamedata.kills + "/" + gamedata.killsMax;
        healthtxt.text = ab.Abbrevs(gamedata.health) + "/" + ab.Abbrevs(gamedata.healthcap);
        dpstxt.text    = "" + " " + ab.Abbrevs(gamedata.dps);
        timericon.gameObject.SetActive(false);
        timertext.gameObject.SetActive(false);

        healthbar.fillAmount = (float)(gamedata.health / gamedata.healthcap);

        if (gamedata.stagemax % 10 == 0)
        {
            if (gamedata.kills == 9)
            {
                stagetxt.text = "BOSS!!";
            }
        }

        if (gamedata.healthcap == 0)
        {
        }

        if (gamedata.stage % 10 == 0)
        {
            if (gamedata.kills == 9)
            {
                timericon.gameObject.SetActive(true);
                timertext.gameObject.SetActive(true);
                timertext.text = "" + timer;
                if (timer == 0)
                {
                    gamedata.kills    = 0;
                    gamedata.stage    = gamedata.stage - 1;
                    gamedata.stagemax = gamedata.stagemax - 1;
                    stagetxt.text     = "" + gamedata.stage;
                    killstxt.text     = "" + gamedata.kills;
                    timericon.gameObject.SetActive(false);
                    timericon.gameObject.SetActive(false);
                }
            }
        }
        else
        {
            timer = 30;
        }
    }