IndieGame/client/Assets/ParadoxNotion/NodeCanvas/Tasks/Conditions/Blackboard/CheckUnityObject.cs

25 lines
589 B
C#
Raw Normal View History

2024-10-11 10:12:15 +08:00
using NodeCanvas.Framework;
using ParadoxNotion.Design;
namespace NodeCanvas.Tasks.Conditions
{
[Category("✫ Blackboard")]
[System.Obsolete("Use CheckVariable(T)")]
public class CheckUnityObject : ConditionTask
{
[BlackboardOnly]
public BBParameter<UnityEngine.Object> valueA;
public BBParameter<UnityEngine.Object> valueB;
protected override string info {
get { return valueA + " == " + valueB; }
}
protected override bool OnCheck() {
return valueA.value == valueB.value;
}
}
}