I’m Watching brackeys multiplayer fps tutorials and i just finished watching ep 16 Bug Fixing and i have trouble. When i play as player 1 (The host) and shoots player 2 (The client) he dies at one shot and respawns then i can’t move player 2 but i can shoot him with player 1 and he dies after like 20 shots (like he should do) And i get this error. NullReferenceException; Object reference not set to an instance of an object. And the error comes from my player.cs script. Line 39, 92, 130 and 135. And in player.setup. Line 96, 53. Here is screenshots of my code and exact lines that causes the errors http://imgur.com/a/licOt
I can’t see what as actually is wrong please help me, thanks!
↧