Unity networking

Updated on June 26, 2017 in [A] Multiplayer
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
2 on June 25, 2017

I’m trying to do something with networking for a coop game, but I have some problems, first: how to spawn two types of players? and to enable movement only in the local player controlled is this the right code?

 

 

void Start#f7f7f2;”>() style=”color: #f7f7f2;”> #f7f7f2;”>{ />         if (isLocalPlayer) #f7f7f2;”>{ />             this.gameObject.GetComponent<coop_mov>().enabled = true;
        }
    }
 

  • Liked by
Reply
0 on June 25, 2017
  • Liked by
Reply
Cancel
0 on June 26, 2017

Thanks

 

 

  • Liked by
Reply
Cancel