
1.引入URP 2.引入InputSystem 3.引入Fungus 4.引入DoTween 5.引入CinemaMachine 6.引入BehaviorTree 7.引入BehaviorTree动作包 8.配置了渲染管线资源 🥵🥵🥵🥵🥵
23 lines
621 B
C#
23 lines
621 B
C#
namespace BehaviorDesigner.Runtime.Tasks.Unity.Math
|
|
{
|
|
[TaskCategory("Unity/Math")]
|
|
[TaskDescription("Performs a comparison between two bools.")]
|
|
public class BoolComparison : Conditional
|
|
{
|
|
[Tooltip("The first bool")]
|
|
public SharedBool bool1;
|
|
[Tooltip("The second bool")]
|
|
public SharedBool bool2;
|
|
|
|
public override TaskStatus OnUpdate()
|
|
{
|
|
return bool1.Value == bool2.Value ? TaskStatus.Success : TaskStatus.Failure;
|
|
}
|
|
|
|
public override void OnReset()
|
|
{
|
|
bool1 = false;
|
|
bool2 = false;
|
|
}
|
|
}
|
|
} |