Main.gd 215 B

12345678910111213
  1. extends Node2D
  2. func _ready():
  3. pass
  4. func _process(_delta):
  5. if Input.is_action_just_pressed("ui_cancel"):
  6. if has_node("Game"):
  7. get_tree().paused = not get_tree().paused
  8. $Menu.visible = not $Menu.visible