19 lines
392 B
C#
19 lines
392 B
C#
![]() |
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;
|
||
|
}
|
||
|
}
|
||
|
}
|