feat: Implement Room Streaming System
- Add RoomStreamingManager to manage room loading and unloading based on player proximity. - Create StreamingBudgetConfigSO for memory and performance budgeting of the streaming system. - Introduce TransitionDirector to handle seamless and atmospheric fade transitions between rooms. - Develop WorldGraph to represent room connectivity and facilitate neighbor queries and distance calculations. - Implement RoomNode and RoomEdge classes to structure room data and connections.
This commit is contained in:
@@ -111,7 +111,11 @@ namespace BaseGames.Enemies
|
||||
bool active = i < _maxActiveBehaviorTrees;
|
||||
|
||||
if (bt != null && bt.enabled != active)
|
||||
{
|
||||
bt.enabled = active;
|
||||
// 同步暂停/恢复 SensorToolkit Sensor,避免远处敌人无效 tick
|
||||
enemy.SensorHub?.SetSuspended(!active);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user