mirror of
http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite.git
synced 2025-11-20 05:37:11 +08:00
(client) feat:添加基地界面到游玩界面的过程,添加存档管理,技能树变得可用 (#58)
Co-authored-by: m0_75251201 <m0_75251201@noreply.gitcode.com> Reviewed-on: http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite/pulls/58
This commit is contained in:
23
Client/Assets/Scripts/AI/JobNode_Idle.cs
Normal file
23
Client/Assets/Scripts/AI/JobNode_Idle.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Data;
|
||||
|
||||
namespace AI
|
||||
{
|
||||
public class JobNode_Idle:LeafNodeBase
|
||||
{
|
||||
protected override Status ExecuteLeafLogic()
|
||||
{
|
||||
return RemainingFrames == 0 ? Status.Success : Status.Running;
|
||||
}
|
||||
|
||||
public override void Init(BehaviorTreeDef def, Entity.Entity selfEntity)
|
||||
{
|
||||
base.Init(def, selfEntity);
|
||||
if (string.IsNullOrEmpty(def.value)) return;
|
||||
if (int.TryParse(def.value, out var result))
|
||||
{
|
||||
TimeoutFrames=result;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user