mirror of
http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite.git
synced 2025-11-20 12:37:12 +08:00
(client) feat:健康给予,路径优化,结算界面,商店界面 (#60)
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/60
This commit is contained in:
@@ -1,9 +1,4 @@
|
||||
using Data;
|
||||
using Parsing;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Managers;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AI
|
||||
{
|
||||
@@ -14,6 +9,7 @@ namespace AI
|
||||
Success, // 节点成功完成
|
||||
Failure // 节点失败
|
||||
}
|
||||
|
||||
public abstract class BehaviorTreeBase
|
||||
{
|
||||
// 所有行为树节点通用的核心成员
|
||||
@@ -23,15 +19,14 @@ namespace AI
|
||||
public virtual void Init(BehaviorTreeDef def, Entity.Entity selfEntity)
|
||||
{
|
||||
SelfEntity = selfEntity;
|
||||
|
||||
}
|
||||
|
||||
// 所有行为树节点都必须实现的执行逻辑
|
||||
public abstract Status Tick();
|
||||
|
||||
public virtual void Reset()
|
||||
{
|
||||
CurrentStatus = Status.Ready;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user