mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
临时提交
This commit is contained in:
@@ -134,7 +134,7 @@ namespace GAS.Editor
|
||||
{
|
||||
if (IsPlaying)
|
||||
{
|
||||
if (_selected == null || _selected.gameObject == null)
|
||||
if (_selected == null || _selected.GetView().gameObject == null)
|
||||
{
|
||||
_selected = GAS.GameplayAbilitySystem.GAS.AbilitySystemComponents.Count > 0
|
||||
? GAS.GameplayAbilitySystem.GAS.AbilitySystemComponents[0] as AbilitySystemComponent
|
||||
@@ -169,7 +169,7 @@ namespace GAS.Editor
|
||||
{
|
||||
var asc = (AbilitySystemComponent)iasc;
|
||||
var presetName = asc.Preset != null ? asc.Preset.name : "NoPreset";
|
||||
if (GUILayout.Button($"{presetName}#{asc.GetInstanceID()}"))
|
||||
if (GUILayout.Button($"{presetName}#{asc.GetView().GetInstanceID()}"))
|
||||
{
|
||||
_selected = asc;
|
||||
RefreshAscInfo();
|
||||
@@ -194,8 +194,8 @@ namespace GAS.Editor
|
||||
return;
|
||||
}
|
||||
|
||||
IID = _selected.GetInstanceID();
|
||||
instance = _selected.gameObject;
|
||||
IID = _selected.GetView().GetInstanceID();
|
||||
instance = _selected.GetView().gameObject;
|
||||
Level = _selected.Level;
|
||||
|
||||
RefreshAbilityInfo();
|
||||
@@ -278,13 +278,13 @@ namespace GAS.Editor
|
||||
case GameplayEffectSpec spec:
|
||||
{
|
||||
DynamicTag.Add(
|
||||
$" - From: {spec.Owner.GetInstanceID()}'s GE: {spec.GameplayEffect.GameplayEffectName}");
|
||||
$" - From: {spec.Owner.EntityId}'s GE: {spec.GameplayEffect.GameplayEffectName}");
|
||||
break;
|
||||
}
|
||||
case AbilitySpec ability:
|
||||
{
|
||||
DynamicTag.Add(
|
||||
$" - From: {ability.Owner.GetInstanceID()}'s Ability: {ability.Ability.Name}");
|
||||
$" - From: {ability.Owner.EntityId}'s Ability: {ability.Ability.Name}");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user