"Base" is in another scene but I thought Find will find it even if it's in another scene.
public class DronesManager : MonoBehaviour
{
public GameObject target;
public float movementSpeed;
public float launchTime;
public Transform dronesUnchild;
private List<GameObject> drones = new List<GameObject>();
private static System.Random rnd = new System.Random();
private void Awake()
{
target = GameObject.Find("Base");
}
but target is null when running the game.
this is a screenshot of the hierarhcy the script is attached to the Missile Launcher in the SampleScene and the "Base" is in the Example_01 scene.