This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2024-10-24 02:21:21 +08:00
parent 0827295804
commit 6cf78b53bb
61 changed files with 9651 additions and 12551 deletions

View File

@@ -1,6 +1,7 @@
using System;
using JNGame.Game;
using JNGame.GAS;
using JNGame.Runtime.GAS.Runtime;
#if UNITY_EDITOR
namespace GAS.Editor
@@ -179,8 +180,8 @@ namespace GAS.Editor
if (IsPlaying)
{
if (_selected == null || _selected.EntityId == 0)
_selected = GameplayAbilitySystem.GAS.AbilitySystemComponents.Count > 0
? GameplayAbilitySystem.GAS.AbilitySystemComponents[0] as AbilitySystemComponent
_selected = JexGasManager.Editor.AbilitySystemComponents.Count > 0
? JexGasManager.Editor.AbilitySystemComponents[0] as AbilitySystemComponent
: null;
RefreshAscInfo();
@@ -201,7 +202,7 @@ namespace GAS.Editor
if (!IsPlaying) return;
menuScrollPos = EditorGUILayout.BeginScrollView(menuScrollPos, GUI.skin.box);
foreach (var iasc in GameplayAbilitySystem.GAS.AbilitySystemComponents)
foreach (var iasc in JexGasManager.Editor.AbilitySystemComponents)
{
var asc = (AbilitySystemComponent)iasc;
var presetName = asc.Preset != null ? asc.Preset.Name : "NoPreset";
@@ -211,7 +212,6 @@ namespace GAS.Editor
RefreshAscInfo();
}
}
EditorGUILayout.EndScrollView();
}