zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Server/Hotfix/Game/AI/IdleNode.cs

25 lines
527 B
C#
Raw Normal View History

2021-04-10 19:49:32 +08:00
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)
{
2021-04-11 19:50:39 +08:00
bool ret = await TimerComponent.Instance.WaitAsync(1000, cancelToken);
2021-04-10 19:49:32 +08:00
if (!ret) return;
}
}
}
}