OnStart, OnCompletedは、
photonV4でのアップデート時に取り除かれたため、現在は利用できません。
それ以前のバージョンでは、
以下のように手動で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件のコメント
サインインしてコメントを残してください。