BITKit/Packages/Runtime~/Unity/Extensions/NodeCanvas/Interval.cs

22 lines
509 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using NodeCanvas.Tasks;
using NodeCanvas.Framework;
using BITKit.SubSystems;
using BITKit.SubSystems.Quest;
using NodeCanvas.BehaviourTrees;
namespace BITKit
{
public class Interval : ConditionTask
{
public BBParameter<float> interval;
private readonly IntervalUpdate intervalUpdate = new();
protected override bool OnCheck()
{
intervalUpdate.Interval = interval.value;
return intervalUpdate.AllowUpdate;
}
}
}