Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Play Controller Problem with Multiplayer

$
0
0
Hey folks,

I have been trying to incorporate a simple player controller and allow it to work with a multiplayer game.

Here is a code blurb from the NetworkManager.cs script, SpawnPlayer Instantiates the playerPrefab
which has a Movement script, and a Network Identity and Network View.

Code (CSharp):
  1.  
  2.        private void JoinServer(HostData hostData){
  3.             Network.Connect(hostData);
  4.        }
  5.  
  6.         void OnConnectedToServer(){
  7.             //Debug.Log("Server Joined");...
Play Controller Problem with Multiplayer

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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