NetworkServer is not active. Cannot spawn objects without an active server.
Hi! I'm making a 2D Tank game where bullets are fired when you tap an on-screen button. The platform target is mobile.
I have Installed the app on my iPhone 7 and hosted a room. I then go in on the Unity connector and enter my phone's local ip address: 192.168.1.11. No errors and I connect successfully. Both the players are at the correct positions with the correct rotations etc... When I try firing a bullet from my iPhone (the host) it works perfectly without any errors but when I attempt firing a bullet from the client i get this error:
![alt text][1]
The error points to line 103 where: Network.Spawn(bullet_fired); Here's the relevant part of the script (Tank.cs): ![alt text][2]
Thanks for any help I can get! I have been debugging this for 2 days and scanned! [1]: /storage/temp/108026-screen-shot-2017-12-26-at-171147.png [2]: /storage/temp/108027-screen-shot-2017-12-26-at-171337.png
Your answer
Follow this Question
Related Questions
RayCast 2d change start position ? 0 Answers
Calculate BoxCollider2D based on the actual player sprite 2 Answers
Help me with joystick setting 1 Answer
I need help with AI,Force not working 0 Answers
How do I make a ball bounce in a circle? 0 Answers