Hi guys, how do I go about running a conditional tool script in two scripts so they could call each other? I have them both working separately with editor check and safeguard bool check under their respective _process but I can't figure out how to share data between them to process.
My first instinct was to have functions I want to call nested under the _process but it doesn't seem like this is allowed. I've been stuck on this and I'm out ideas and internet search keywords.
This is how I've been testing and debugging my scripts so far when the logic was contained to a single script and it's instances:
`@export var editor_code_execution: bool = false
func _process(delta: float) -> void:
if Engine.is_editor_hint() and editor_code_execution:
print("Hello")
editor_code_execution = false`
But now that I want to expand the scope of my project I have problems coming up with a way to make things work. Is there a solution that I missed or failed to consider? For context I'm trying to learn working with resources so one scripts belongs to a resource and the second one belongs to a template that I'm building for something.