Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Cant transfer object references through the network?

$
0
0
Right now I'm creating a multiplayer helicopter game, but I can't fix this error in my code for some time now. I get this error when somebody respawns(both the server host and client can get it)

This is the error that I get:

NullReferenceException: Object reference not set to an instance of an object Spawning.Respawn () (at Assets/Scripts/Spawning.cs:47)

This is Spawning.cs:

http://pastebin.com/F3YkXE94
(I uploaded it to pastebin because it looks better there)

Any ideas how to...

Cant transfer object references through the network?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>