IndieGame/client/Assets/ParadoxNotion/NodeCanvas/Tasks/Actions/Blackboard/SetVariable.cs
DOBEST\zhaoyingjie f242607587 初始化工程
2024-10-11 10:12:15 +08:00

24 lines
518 B
C#

using NodeCanvas.Framework;
using ParadoxNotion.Design;
namespace NodeCanvas.Tasks.Actions
{
[Category("✫ Blackboard")]
public class SetVariable<T> : ActionTask
{
[BlackboardOnly]
public BBParameter<T> valueA;
public BBParameter<T> valueB;
protected override string info {
get { return valueA + " = " + valueB; }
}
protected override void OnExecute() {
valueA.value = valueB.value;
EndAction();
}
}
}