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