由於OnStart, OnCompleted在Photon v4更新版本時已被刪除,因此現在無法使用。在更早期的版本中,可以如下所示,以手動叫出 OnStart/OnComplete的方法來進行確認。
createGameRequest.OnStart();
this.HandleCreateGameOperation(peer, sendParameters, createGameRequest);
createGameRequest.OnComplete();
各個函式在內部具有如下意義:
OnStart:
started = Stopwatch.GetTimestamp();
OnCompleted:
long nominator = (Stopwatch.GetTimestamp() - started) * 1000;
execTime = nominator / Stopwatch.Frequency;
評論
0 條評論
請登入寫評論。