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

30 lines
827 B
C#

using NodeCanvas.Framework;
using ParadoxNotion.Design;
namespace NodeCanvas.Tasks.Conditions
{
[Category("✫ Utility")]
[Description("Simply use to debug return true or false by inverting the condition if needed")]
public class DebugCondition : ConditionTask
{
protected override bool OnCheck() {
return false;
}
///----------------------------------------------------------------------------------------------
///---------------------------------------UNITY EDITOR-------------------------------------------
#if UNITY_EDITOR
protected override void OnTaskInspectorGUI() {
if ( UnityEngine.Application.isPlaying && UnityEngine.GUILayout.Button("Tick True") ) {
YieldReturn(true);
}
}
#endif
}
}