class Queue extends NetworkBehaviour
var Car : GameObject;
var queueing : boolean;
var timer : GameObject;
var manager : GameObject;
function Start ()
timer = GameObject.Find("GlobalTimer");
manager = GameObject.Find("NetworkManager");
function Update ()
queueing = !queueing;
if(queueing == true && timer.GetComponent(RaceTimer).starting == true)
var c = Instantiate(Car);
That's my script but when I spawn the car , it doesn't appear on both screens nor does it think it's a "localplayer"? Any help?
Answer by p1g30n
Apr 16 at 09:16 PM
I really can't tell what is the problem, because there might be some, but I am sure that video will help you if you do and check every step made in this video. https://www.youtube.com/watch?v=V6wEvT6G92M&t=3275s&list=WL∈dex=33
Answer by Delforce
6 days ago
From what I can tell by the code it seems that possibly your destroying the gameobject of the Car that your wanting on the network. What happens when you don't destroy the gameobject?
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
5 People are following this question.
Unity networking tutorial?
rpc / head rotation
What's the best way to connect and communicate between an Android Unity app and a non-Unity Windows C++ application over LAN?
[UNET] How to pass control back to server