how to instantiate pun agent

Justin

Administrator
Staff member
The PUN Spawn Manager will use the spawn points automatically when spawned. Make sure you have a valid spawn point and grouping setup in order for the spawn point to be valid.

 

Shanmukh

Member
I just write

public GameObject AgentPrefab;

public void Start()
{
Instantiate(AgentPrefab);
}

agent instantiated at zero position. not in spawn points.
please guide me on how to instantiate properly.
 
Top