This commit is contained in:
PC-20230316NUNE\Administrator
2024-08-31 21:05:29 +08:00
parent d67032e1de
commit 77b305be7a
53 changed files with 316 additions and 118 deletions

View File

@@ -136,12 +136,12 @@ namespace JNGame.Sync.Entity
//生命周期
public virtual void OnSyncStart(){}
public virtual void OnSyncUpdate()
public virtual void OnSyncUpdate(int dt)
{
//给组件推帧
foreach (var component in GetComponents())
{
(component as JNComponent)?.OnSyncUpdate();
(component as JNComponent)?.OnSyncUpdate(dt);
}
}