Hey
for my game I need to create a localhost server not using the gui but a script preferably c# and this script:
Creating a localhost server with c#
for my game I need to create a localhost server not using the gui but a script preferably c# and this script:
Code (CSharp):
- using UnityEngine;
- using System.Collections;
- using UnityEngine.Networking;
- public class StartSinglePlayer : NetworkBehaviour {
- NetworkClient myClient;
- public GameObject playerPrefab;
- // Use this for initialization
- }
- // Update is called once per frame
- }
- public void StartWorld(){...