@@ -38,11 +38,12 @@ namespace ET
isInited = true;
}
- public void Update()
+ public void Update(int timeMS)
{
if (!isInited) return;
//TODO: Send ping
+ Layer.BeginUpdate(timeMS);
Layer.Update();
this.doUpdate();
@@ -27,7 +27,7 @@ namespace ET.Client
private static Vector3 vecTemp = new();
private List<uint> listTemp = new();
listTemp.Clear();
var now = Time.realtimeSinceStartup;
@@ -62,7 +62,7 @@ namespace ET
private void Update()
- Game.Update();
+ Game.Update((int)(Time.deltaTime * 1000));
private void LateUpdate()