问题修复
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AibisDream.SystemEditor
|
||||
{
|
||||
@@ -15,6 +16,11 @@ namespace AibisDream.SystemEditor
|
||||
EditorGUILayout.LabelField("层级设置", EditorStyles.boldLabel);
|
||||
example.sortingLayer = EditorKit.SortingLayerField("目标层级", example.sortingLayer);
|
||||
example.sortingOrder = EditorGUILayout.IntField("层级顺序", example.sortingOrder);
|
||||
|
||||
if (GUI.changed)
|
||||
{
|
||||
EditorUtility.SetDirty(target);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -46,6 +46,14 @@ namespace AibisDream
|
||||
public void ShowLine(string dialogLine, CharacterVo character, Action nextStep, string lineId,
|
||||
bool isAutoSkip = false)
|
||||
{
|
||||
if (_taskDict.ContainsKey(lineId))
|
||||
{
|
||||
EnumEventSystem.Global.Send(DialogEventEnum.LineShown);
|
||||
EnumEventSystem.Global.Send(DialogEventEnum.LineEnd);
|
||||
nextStep.Invoke();
|
||||
return;
|
||||
}
|
||||
|
||||
var taskItem = Instantiate(_taskItemPrefab, _taskListParent);
|
||||
var task = taskItem.GetComponent<TMP_Text>();
|
||||
task.text = $"\u25cf {dialogLine}";
|
||||
|
||||
Reference in New Issue
Block a user