legendsonline/client/source/GameKit.gd

16 lines
396 B
GDScript3
Raw Permalink Normal View History

2025-02-18 18:49:00 +00:00
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_to_file("res://scenes/TitleScn.tscn")
elif is_mode == "game":
get_tree().change_scene_to_file("res://scenes/GameScn.tscn")