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,4 +1,5 @@
|
||||
using Data;
|
||||
using Managers;
|
||||
|
||||
namespace Parsing
|
||||
{
|
||||
@@ -11,7 +12,7 @@ namespace Parsing
|
||||
|
||||
public static bool HasEnemyInSight(Entity.Entity entity)
|
||||
{
|
||||
return Managers.EntityManager.Instance.ExistsHostile(entity.currentDimensionId, entity.entityPrefab);
|
||||
return EntityManager.Instance.ExistsHostile(entity.currentDimensionId, entity.entityPrefab);
|
||||
}
|
||||
|
||||
public static bool HasWeapon(Entity.Entity entity)
|
||||
@@ -24,6 +25,7 @@ namespace Parsing
|
||||
var weapon = entity.GetCurrentWeapon();
|
||||
return weapon is { Type: WeaponType.Ranged };
|
||||
}
|
||||
|
||||
public static bool HasMeleeWeapon(Entity.Entity entity)
|
||||
{
|
||||
var weapon = entity.GetCurrentWeapon();
|
||||
|
||||
Reference in New Issue
Block a user