mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-27 03:53:33 +00:00
working exit button
This commit is contained in:
+2
-4
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user