@Override
	public void update(int mouseX, int mouseY, boolean pressed)
	{
		super.update(mouseX, mouseY, pressed);
		
		if(this.btnResume.wasClicked())
			Game.instance.setCurrentGui(null);
		if(this.btnNewGame.wasClicked())
		{
			Game.instance.world = new World();
			Game.instance.setCurrentGui(null);
		}
		if(this.btnControls.wasClicked())
			Game.instance.setCurrentGui(new GuiControls(this, this.x, this.y, this.width, this.height));
		if(this.btnInstruction.wasClicked())
			Game.instance.setCurrentGui(new GuiInstruction(this, this.x, this.y, this.width, this.height));
		if(this.btnCredit.wasClicked())
			Game.instance.setCurrentGui(new GuiCredit(this, this.x, this.y, this.width, this.height));
	}