临时提交

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

@@ -12,17 +12,17 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: d763af469c524557946c477b9bea3a46, type: 3}
m_Name: JisolDemo1
m_EditorClassIdentifier:
Description:
UniqueName: JisolDemo1
Cost: {fileID: 0}
Cooldown: {fileID: 0}
CooldownTime: 0
AssetTags: []
CancelAbilityTags: []
BlockAbilityTags: []
ActivationOwnedTags: []
ActivationRequiredTags: []
ActivationBlockedTags: []
description:
uniqueName: JisolDemo01
cost: {fileID: 0}
cooldown: {fileID: 0}
cooldownTime: 0
assetTags: []
cancelAbilityTags: []
blockAbilityTags: []
activationOwnedTags: []
activationRequiredTags: []
activationBlockedTags: []
Speed:
rawValue: 1000000
ManualEndAbility: 0

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;
}
}
}