mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user