PhotonHandler.StartFallbackSendAckThread C# (CSharp) Méthode

StartFallbackSendAckThread() public static méthode

public static StartFallbackSendAckThread ( ) : void
Résultat void
    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
    }

Usage Example

 protected void Awake()
 {
     if (PhotonHandler.SP != null && PhotonHandler.SP != this && PhotonHandler.SP.gameObject != null)
     {
         Object.DestroyImmediate(PhotonHandler.SP.gameObject);
     }
     PhotonHandler.SP = this;
     Object.DontDestroyOnLoad(base.gameObject);
     this.updateInterval            = 1000 / PhotonNetwork.sendRate;
     this.updateIntervalOnSerialize = 1000 / PhotonNetwork.sendRateOnSerialize;
     PhotonHandler.StartFallbackSendAckThread();
 }
All Usage Examples Of PhotonHandler::StartFallbackSendAckThread