Add WeaponFeedback component and AddressableManagerWindow meta file

- Implemented WeaponFeedback class for handling weapon-related feedbacks such as hit effects and attack sounds.
- Added meta file for AddressableManagerWindow to manage addressable assets.
- Included a new jump.data file for profiler data.
This commit is contained in:
2026-05-22 22:03:32 +08:00
parent 3e1f234ddc
commit b7baf7ad6a
44 changed files with 1783 additions and 1927 deletions

View File

@@ -46,19 +46,17 @@ namespace BaseGames.World
{
Vector2 playerPos = player.transform.position;
#if UNITY_6000_0_OR_NEWER
var zones = Object.FindObjectsByType<CameraTriggerZone>(FindObjectsSortMode.None);
#else
var zones = Object.FindObjectsOfType<CameraTriggerZone>();
#endif
// 使用 CameraTriggerZone 静态注册表,避免 FindObjectsOfType 全场景扫描
var zones = CameraTriggerZone.AllZones;
// 选取优先级最高的匹配区域(避免多区域重叠时选错基线)
CameraArea bestArea = null;
int bestPriority = int.MinValue;
foreach (var zone in zones)
{
var poly = zone.GetComponent<PolygonCollider2D>();
if (poly != null && poly.OverlapPoint(playerPos))
if (zone == null) continue;
if (zone.ContainsPoint(playerPos))
{
var area = zone.GetComponentInParent<CameraArea>();
if (area != null && zone.Priority > bestPriority)