This repository has been archived on 2024-04-19. You can view files and clone it, but cannot push or open issues or pull requests.
Jessist/Scripts/GameCrashButton.gd

13 lines
295 B
GDScript3
Raw Permalink Normal View History

2022-06-18 13:05:48 +02:00
extends Button
func _ready():
if gameController.debuggingMode:
visible = true
disabled = false
else:
visible = false
disabled = true
func pressed():
gameController.crashJessist("test","pressed","CRASH GOT INITIATED MANUALLY BY THE USER BY PRESSING NODE \"BUTTON\" IN SCENE LEVEL0")