mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 19:10:32 +00:00
UpdateClient change per Ninja
This commit is contained in:
parent
aa3c1b6bd4
commit
f87d5e4f9c
@ -125,8 +125,12 @@ protected virtual void UpdateServer()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private float lastUpdateTime;
|
||||||
protected virtual void UpdateClient()
|
protected virtual void UpdateClient()
|
||||||
{
|
{
|
||||||
|
if (!inFocus) Debug.Log($"Update Frame Time = {Time.time - lastUpdateTime}");
|
||||||
|
lastUpdateTime = Time.time;
|
||||||
|
|
||||||
// client authority, and local player (= allowed to move myself)?
|
// client authority, and local player (= allowed to move myself)?
|
||||||
if (!IsClientWithAuthority)
|
if (!IsClientWithAuthority)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user