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

@@ -7,6 +7,13 @@ namespace JNGame.Sync.Frame.Entity.Component.Components
{
public class JNTransformComponent : JNComponent
{
public LVector3 Position = new();
public bool IsRange(LVector3 target,LFloat len)
{
return LVector3.Distance(Position, target) <= len;
}
}
}

View File

@@ -24,7 +24,7 @@ namespace JNGame.Sync.Entity.Component
//生命周期
public virtual void OnSyncStart(){}
public virtual void OnSyncUpdate(){}
public virtual void OnSyncUpdate(int dt){}
public virtual void OnSyncDestroy(){}
}
}