i have an enemy as the main gameobject with script A, i have an empty gameobject with script B attached (or is a child of) to the enemy gameobject. how do i access script A from script B without doing a GameObject.Find?
there are multiple gameobjects called “Enemy” with multiple parented empty gameobjects.
reason why im doing this is because the enemy already uses an ontriggerenter for its targeting AI, and this parented gameobject would be used for the ground check which also uses an ontriggerenter. so i made the ground check on its own layer to only collide with “Walls”
ps, using C#