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개
댓글을 남기려면 로그인하세요.