I was trying to take out the HUD and just have a client start with the player to spawn, I have a LAN server open already and I get no errors, just the scene with no spawned player… all works fine with HUD… any help would be greatly appreciated!
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
using UnityEngine.Networking.NetworkSystem;
public class connectasclient : NetworkManager
{
public NetworkManager m_Manager;
public string IpAddress = "192.xxx.x.x";
public string Port = "localhost";
private bool _started;
// Use this for initialization
void Start () {
NetworkManager.singleton.networkAddress = IpAddress;
NetworkManager.singleton.networkPort = int.Parse(Port);
NetworkManager.singleton.StartClient();
}
}