mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
临时提交
This commit is contained in:
@@ -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
|
||||
|
@@ -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