All I would like to know is how to call other game objects from other script. Here’s a part of script I have.
public GameObject Monster; // The enemy prefab to be spawned.
public Vector3 Zone1V;
public Vector3 Zone2V;
public Vector3 Zone3V;
public Vector3 Zone4V;
public Vector3 Zone5V;
public Collider Zone1;
public Collider Zone2;
public Collider Zone3;
public Collider Zone4;
public Collider Zone5;
GameObject SpawnedM;
void Start()
{
mTrackableBehaviour = GetComponent<TrackableBehaviour>();
if (mTrackableBehaviour)
{
mTrackableBehaviour.RegisterTrackableEventHandler (this);
}
I have another script and all I want to call or access is the public game object Monster.