UpdateClient change per Ninja

This commit is contained in:
MrGadget1024 2023-02-21 02:14:21 -05:00
parent aa3c1b6bd4
commit f87d5e4f9c

View File

@ -125,8 +125,12 @@ protected virtual void UpdateServer()
}
}
private float lastUpdateTime;
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)?
if (!IsClientWithAuthority)
{