void Start() { if (Default != null) { Destroy(gameObject); } Default = this; DontDestroyOnLoad(gameObject); ClientProperties properties = ClientProperties.Default; ServerInfo serverInfo = ServerInfo.DefaultLocal; networkClient = new LiNGSClient(properties, serverInfo, this); networkClient.Connect(); }
public void Connect(ClientProperties clientProperties, ServerInfo serverInfo) { lingsClient = new LiNGSClient(clientProperties, serverInfo, this); lingsClient.Connect(); }