Accessing the property of another scene

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By sty6x

Hi im new to godot and game dev i’ve been using godot for almost a month now and i’ve stubble on a problem which i can’t wrap my head around, so i have player scene which i instantiated on the main scene and i made an enemy scene that i want to instantiate THROUGH the main scene’s script without having to drag and drop it, and i want the enemy to access the player’s property so i can make the enemy chase the player, how would i go about doing this? i’ve tried using singleton and autoload, i understand the concept but i couldn’t implement it in code, thanks in advance!

PS. I’m using C#