コード例 #1
0
 IEnumerator _ImpHost()
 {
     if (inHosting && Network.isServer)
     {
         yield return StartCoroutine(updateSelfHost());
         if (failedRequest)
             yield return StartCoroutine( _SentRegisterInfo());
     }
     else
     {
         updateSelfHostTimer.endTimer();
         updateSelfHostTimer = null;
     }
 }
コード例 #2
0
    IEnumerator _RegisterHost()
    {
        yield return StartCoroutine( _SentRegisterInfo());
        if (inHosting)
        {
            yield return new WaitForSeconds(autoUpdateSelf);
            updateSelfHostTimer = gameObject.AddComponent<zzTimerCoroutine>();
            updateSelfHostTimer.setInterval(autoUpdateSelf);
            updateSelfHostTimer.setImpFunction(_ImpHost);

        }
    }
コード例 #3
0
 void createAutoRequest()
 {
     requestHostTimer = gameObject.AddComponent<zzTimerCoroutine>();
     requestHostTimer.setInterval(autoRequestInterval);
     requestHostTimer.setImpFunction(_RequestHostList);
 }