void OnDestroy() { if (ffi != null) { Debug.Log("Closing ffi context"); ffi.Dispose(); ffi = null; } }
public void ConnectToServer(string remoteAddress) { ffi = new Ffi.Context(remoteAddress); }
public void StartLocalServer() { ffi = new Ffi.Context(null); }