```
feat: 移除自适应性能相关配置并调整动画控制器 移除了Unity自适应性能(Adaptive Performance)的相关配置文件, 包括Adaptive Performance文件夹及其子目录中的所有配置文件, 同时移除了移动通知(NotificationSettings)相关配置, 以及第一章第一关(level_chapter1_level1)的关卡配置文件, 还删除了多个材质文件如AdjustableGlowOrb、AdjustableGlowOrbHalo 和Arena相关材质。另外微调了base-人类士兵.controller中状态机 的位置坐标,将x坐标从320调整为330。 ```
This commit is contained in:
1 parent
13d0c80335
commit
f77fa20f82
413 files changed
+13494
-63858
No files matched your search
@@ -22,12 +22,6 @@ public class CastleSpawnManager : MonoBehaviour
|
||||
public bool TrySpawn(CharacterData data, int teamId)
|
||||
{
|
||||
if (data == null || data.unitPrefab == null) return false;
|
||||
if (ManaSystem.Instance == null || !ManaSystem.Instance.TryConsumeMana(data.manaCost))
|
||||
{
|
||||
Debug.Log($"能量不足,需要 {data.manaCost}");
|
||||
return false;
|
||||
}
|
||||
|
||||
Transform spawnPoint = teamId == 0 ? blueSpawnPoint : redSpawnPoint;
|
||||
if (spawnPoint == null)
|
||||
{
|
||||
@@ -70,8 +64,6 @@ public class CastleSpawnManager : MonoBehaviour
|
||||
|
||||
public bool CanAfford(CharacterData data)
|
||||
{
|
||||
return data != null
|
||||
&& ManaSystem.Instance != null
|
||||
&& ManaSystem.Instance.CurrentManaInt >= data.manaCost;
|
||||
return data != null && data.unitPrefab != null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user