public void OnConnectButtonClick() { PhiClient client = PhiClient.instance; client.SetServerAddress(enteredAddress); client.TryConnect(); }
public PhiInitializer() { string address = GetServerAddress(); PhiClient client = new PhiClient(address); client.TryConnect(); }
public PhiInitializer() { PhiClient client = new PhiClient(); client.TryConnect(); // We use this as an entry to the main thread of the game. // Since the whole network layer receives messages in a different thread // than the game thread, we use this to resynchronize the whole thing. GameObject obj = new GameObject("Phi helper objects"); obj.AddComponent <PhiComponent>(); }