mirror of
https://github.com/tonytins/godotstarter.git
synced 2025-03-22 09:22:24 +00:00
13 lines
296 B
GDScript3
13 lines
296 B
GDScript3
|
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")
|