24 lines
518 B
C#
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();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|