Object A instantiates Object B on key press. I’m assigning this script on Object B, to put each instantiated enemy ( Crowd(Clone) ) under a variable called ‘crowd’, but on running it in Unity, the variable field ‘crowd’ remains None(GameObject), despite me putting the command to assign it under Start() or Update(). Code is as follows:
public GameObject crowd;
void Update()
{
crowd = GameObject.Find("Crowd(Clone)");
}
I think this method is better
– OrbitSoftGameObject clone = Intantiate(params)I'm not too sure how that would help :S
– dhully