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

Creating a localhost server with c#

$
0
0
Hey

for my game I need to create a localhost server not using the gui but a script preferably c# and this script:
Code (CSharp):
  1. using UnityEngine;
  2. using System.Collections;
  3. using UnityEngine.Networking;
  4.  
  5. public class StartSinglePlayer : NetworkBehaviour {
  6.     NetworkClient myClient;
  7.     public GameObject playerPrefab;
  8.  
  9.  
  10.     // Use this for initialization
  11.     void Start () {
  12.    
  13.     }
  14.    
  15.     // Update is called once per frame
  16.     void Update () {
  17.    
  18.     }
  19.  
  20.     public void StartWorld(){...
Creating a localhost server with c#

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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