mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 10:46:17 +00:00
临时提交
This commit is contained in:
@@ -4,12 +4,13 @@ using UnityEngine;
|
||||
|
||||
namespace GAS.Runtime
|
||||
{
|
||||
public class AbilitySystemComponent : MonoBehaviour, IAbilitySystemComponent
|
||||
public class AbilitySystemComponent : IAbilitySystemComponent
|
||||
{
|
||||
[SerializeField]
|
||||
|
||||
private AbilitySystemComponentPreset preset;
|
||||
|
||||
public AbilitySystemComponentPreset Preset => preset;
|
||||
|
||||
public int EntityId { get; protected set; }
|
||||
|
||||
public int Level { get; protected set; }
|
||||
|
||||
@@ -190,7 +191,7 @@ namespace GAS.Runtime
|
||||
if (gameplayEffectSpec == null)
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
Debug.LogError($"[EX] Try To Apply a invalid EntityRef of GameplayEffectSpec From {name} To {target.name}!");
|
||||
Debug.LogError($"[EX] Try To Apply a invalid EntityRef of GameplayEffectSpec From {EntityId} To {target.EntityId}!");
|
||||
#endif
|
||||
return null;
|
||||
}
|
||||
@@ -203,7 +204,7 @@ namespace GAS.Runtime
|
||||
if (gameplayEffect == null)
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
Debug.LogError($"[EX] Try To Apply a NULL GameplayEffect From {name} To {target.name}!");
|
||||
Debug.LogError($"[EX] Try To Apply a NULL GameplayEffect From {EntityId} To {target.EntityId}!");
|
||||
#endif
|
||||
return null;
|
||||
}
|
||||
@@ -217,7 +218,7 @@ namespace GAS.Runtime
|
||||
if (gameplayEffect == null)
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
Debug.LogError($"[EX] Try To Apply a NULL GameplayEffect From {name} To {target.name}!");
|
||||
Debug.LogError($"[EX] Try To Apply a NULL GameplayEffect From {EntityId} To {target.EntityId}!");
|
||||
#endif
|
||||
return null;
|
||||
}
|
||||
@@ -398,5 +399,15 @@ namespace GAS.Runtime
|
||||
{
|
||||
GameplayEffectContainer.ClearGameplayEffect();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 返回视图
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public virtual GameObject GetView()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,21 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace GAS.Runtime
|
||||
{
|
||||
public class AbilitySystemPreviewComponent : AbilitySystemComponent
|
||||
{
|
||||
|
||||
private GameObject view;
|
||||
|
||||
public AbilitySystemPreviewComponent(GameObject view)
|
||||
{
|
||||
this.view = view;
|
||||
}
|
||||
|
||||
public override GameObject GetView()
|
||||
{
|
||||
return view;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d737dff4fee4418e997631c8d083de40
|
||||
timeCreated: 1729243645
|
Reference in New Issue
Block a user