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

23 lines
525 B
C#

using NodeCanvas.Framework;
using ParadoxNotion.Design;
using UnityEngine;
namespace NodeCanvas.Tasks.Actions
{
[Category("✫ Utility")]
public class DebugDrawLine : ActionTask
{
public BBParameter<Vector3> from;
public BBParameter<Vector3> to;
public Color color = Color.white;
public float timeToShow = 0.1f;
protected override void OnExecute() {
Debug.DrawLine(from.value, to.value, color, timeToShow);
EndAction(true);
}
}
}