1 2 3 4 5 6 7 8
extends Node2D onready var pause_menu = $"." func pause(): pause_menu.pause_mode = PAUSE_MODE_PROCESS get_tree().paused = true