mirror of
https://github.com/tonytins/godotstarter.git
synced 2025-03-24 02:09:14 +00:00
- Added local translations - Added functionality to the title and game screens - Fixed a few overlooked things
15 lines
No EOL
373 B
GDScript
15 lines
No EOL
373 B
GDScript
extends Node
|
|
|
|
const NOT_IMPLEMENTED = "This feature is not implemented"
|
|
|
|
func is_game_paused(is_paused):
|
|
if is_paused == true:
|
|
get_tree().paused = true
|
|
else:
|
|
get_tree().paused = false
|
|
|
|
func switch_scenes(is_mode):
|
|
if is_mode == "title":
|
|
get_tree().change_scene("res://scn/TitleScn.tscn")
|
|
elif is_mode == "game":
|
|
get_tree().change_scene("res://scn/GameScn.tscn") |