working exit button

This commit is contained in:
devZoGok
2024-05-29 20:31:45 +03:00
parent 1a5fbccc5b
commit b9baa05f27
5 changed files with 7 additions and 7 deletions
+2 -4
View File
@@ -1,7 +1,5 @@
#include "exitButton.h"
#include "defConfigs.h"
#include <root.h>
#include "gameManager.h"
using namespace std;
using namespace vb01;
@@ -10,6 +8,6 @@ namespace battleship{
ExitButton::ExitButton(Vector3 pos, Vector2 size) : Button(pos, size, "Exit", GameManager::getSingleton()->getPath() + "Fonts/batang.ttf", -1, true) {}
void ExitButton::onClick() {
//Root::getSingleton()->set
GameManager::getSingleton()->setRunning(false);
}
}