created fog of war
This commit is contained in:
10
addons/godot_debug_environments/debug_environment_watcher.gd
Normal file
10
addons/godot_debug_environments/debug_environment_watcher.gd
Normal file
@@ -0,0 +1,10 @@
|
||||
extends Node
|
||||
|
||||
func _ready() -> void:
|
||||
# Get loaded scene
|
||||
var node = get_tree().current_scene
|
||||
# Check if debug environment is stored
|
||||
var path = DebugEnvironmentLib.get_debug_path(node)
|
||||
if not FileAccess.file_exists(path): return
|
||||
# Replace instance with debug environment
|
||||
get_tree().call_deferred("change_scene_to_file",path)
|
||||
Reference in New Issue
Block a user