临时提交

This commit is contained in:
PC-20230316NUNE\Administrator
2024-10-21 20:02:19 +08:00
parent 930911e7df
commit e9c01842f0
206 changed files with 14468 additions and 21348 deletions

View File

@@ -15,8 +15,9 @@ namespace GASSamples.Scripts.Game.Entity.Nodes.Component.Components
public override void OnSyncStart()
{
base.OnSyncStart();
_asc = new (Entity);
//注册ASC
_asc = GetSystem<JNGASSystem>().CreateAbilitySystemComponent<GAbilitySystemComponent>();
ASC.SetEntity(Entity);
GetSystem<JNGASSystem>().Register(ASC);
}

View File

@@ -8,13 +8,13 @@ namespace GASSamples.Scripts.Game.GAS
{
public IJNEntity Entity { get; protected set; }
public IJNEntity Entity { get; private set; }
public GAbilitySystemComponent(IJNEntity entity)
public void SetEntity(IJNEntity entity)
{
Entity = entity;
}
}
}