Esempio n. 1
0
 public IEnumerator Connect(ColyseusClient c)
 {
     colyseusClient = c;
     return(this.connection.Connect());
 }
 /// <summary>
 /// Creates a new <see cref="ColyseusClient"/> object, with the given endpoint, and returns it
 /// </summary>
 /// <param name="endpoint">URL to the Colyseus server</param>
 /// <returns></returns>
 public ColyseusClient CreateClient(string endpoint)
 {
     client = new ColyseusClient(endpoint);
     return(client);
 }