public static void StartFallbackSendAckThread() { #if !UNITY_WEBGL if (sendThreadShouldRun) { return; } sendThreadShouldRun = true; SupportClassPun.CallInBackground(FallbackSendAckThread); // thread will call this every 100ms until method returns false #endif }
public static void StartFallbackSendAckThread() { if (Application.platform == RuntimePlatform.WebGLPlayer) { if (sendThreadShouldRun) { return; } sendThreadShouldRun = true; SupportClassPun.CallInBackground(FallbackSendAckThread); // thread will call this every 100ms until method returns false } }
public bool EstablishEncryption() { bool asyncKeyExchange = PhotonPeer.AsyncKeyExchange; bool result; if (asyncKeyExchange) { SupportClass.CallInBackground(delegate { this.peerBase.ExchangeKeysForEncryption(this.SendOutgoingLockObject); return(false); }); result = true; } else { result = this.peerBase.ExchangeKeysForEncryption(this.SendOutgoingLockObject); } return(result); }
public static void CallInBackground(Func <bool> myThread) { SupportClass.CallInBackground(myThread, 100); }