using NodeCanvas.Framework; using ParadoxNotion.Design; namespace NodeCanvas.Tasks.Actions { [Name("Get Variable To String")] [Category("✫ Blackboard")] public class GetToString : ActionTask { [BlackboardOnly] public BBParameter variable; [BlackboardOnly] public BBParameter toString; protected override string info { get { return string.Format("{0} = {1}.ToString()", toString, variable); } } protected override void OnExecute() { toString.value = !variable.isNull ? variable.value.ToString() : "NULL"; EndAction(); } } }