(client) feat:实现行为树条件节点的实际功能

This commit is contained in:
m0_75251201
2025-08-24 17:15:52 +08:00
parent da93368f02
commit 797cf69f75
17 changed files with 937 additions and 752 deletions

View File

@ -0,0 +1,19 @@
using System;
using UnityEngine;
namespace AI
{
public static class ConditionFunctions
{
public static bool EntityHealth(Entity.Entity entity, int minHealth)
{
return entity.attributes.health >= minHealth;
}
public static bool IsPlayer(Entity.Entity entity)
{
return entity.PlayerControlled;
}
}
}