develop #34

Merged
cromer merged 36 commits from develop into master 2022-08-28 01:13:46 -04:00
2 changed files with 7 additions and 6 deletions
Showing only changes of commit b74a8ce1aa - Show all commits

View File

@ -1,10 +1,12 @@
#include "gui/game_over/GameOverScreen.h" #include "gui/game_over/GameOverScreen.h"
#include <Node.hpp> #include <Node.hpp>
#include <SceneTree.hpp>
using namespace godot; using namespace godot;
void GameOverScreen::_register_methods() void GameOverScreen::_register_methods()
{ {
register_method("_on_botonreiniciar_pressed", &GameOverScreen::_on_botonreiniciar_pressed); register_method("_on_restart_button_pressed", &GameOverScreen::_on_restart_button_pressed);
} }
GameOverScreen::GameOverScreen() GameOverScreen::GameOverScreen()
@ -19,8 +21,7 @@ void GameOverScreen::_init()
{ {
} }
void GameOverScreen::_on_botonreiniciar_pressed() void GameOverScreen::_on_restart_button_pressed()
{ {
get_tree().change_scene("res://monitor/GUI.tscn"); get_tree()->change_scene("res://monitor/GUI.tscn");
}
}

View File

@ -49,7 +49,7 @@ namespace godot
* @brief Called when the collected of the coin is entered. * @brief Called when the collected of the coin is entered.
* *
*/ */
void _on_botonreiniciar_pressed(); void _on_restart_button_pressed();
}; };
} }