mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@@ -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(){}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user