25 lines
527 B
C#
Executable File
25 lines
527 B
C#
Executable File
using Cal.DataTable;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace ET
|
|
{
|
|
public class IdleNode : AINode
|
|
{
|
|
public override bool Check(Unit unit)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public override async ETVoid Run(Unit unit, ETCancellationToken cancelToken)
|
|
{
|
|
while (true)
|
|
{
|
|
bool ret = await TimerComponent.Instance.WaitAsync(1000, cancelToken);
|
|
if (!ret) return;
|
|
}
|
|
}
|
|
}
|
|
}
|