39 lines
779 B
C#
39 lines
779 B
C#
/*
|
|
* @Author: 白哉
|
|
* @Description:
|
|
* @Date: 2025年06月06日 星期五 19:06:16
|
|
* @Modify:
|
|
*/
|
|
|
|
using System;
|
|
using Logic;
|
|
using NodeCanvas.Framework;
|
|
using UnityEngine;
|
|
|
|
namespace NodeCanvas.Tasks.Actions
|
|
{
|
|
[Serializable]
|
|
public class BaseActionTask : ActionTask
|
|
{
|
|
[SerializeField]
|
|
private uint nodeId;
|
|
|
|
public uint NodeId
|
|
{
|
|
get => nodeId;
|
|
set => nodeId = value;
|
|
}
|
|
|
|
protected override void OnExecute()
|
|
{
|
|
base.OnExecute();
|
|
MainEditor.Instance.BTNodeId = this.nodeId;
|
|
}
|
|
|
|
|
|
#if UNITY_EDITOR
|
|
protected override string info => $"<color=#4A90E2>ID:{desc}</color>";
|
|
protected virtual string desc => string.Empty;
|
|
#endif
|
|
}
|
|
} |