展前冒死重构

This commit is contained in:
FloatGaming
2026-07-24 04:43:13 +08:00
parent d09597472b
commit 4eb70b0ac9
61 changed files with 74951 additions and 328 deletions
@@ -63,6 +63,7 @@ public sealed class UIResolutionAutoFitter : MonoBehaviour
_enemyFollowAttached = false;
_trackStabilizerAttached = false;
_cameraTunerAttached = false;
_trackScalerAttached = false;
StartCoroutine(FitAfterFrame());
}
@@ -301,9 +302,22 @@ public sealed class UIResolutionAutoFitter : MonoBehaviour
_cameraTunerAttached = true;
}
}
// 轨道缩放器:挂到 effectEventController(已是单例集中点)或任意对象,运行时找 track1-5 拉长。
if (!_trackScalerAttached)
{
var eff = effectEventController.Instance;
if (eff != null)
{
if (eff.GetComponent<TrackScaler>() == null)
eff.gameObject.AddComponent<TrackScaler>();
_trackScalerAttached = true;
}
}
}
private bool _trackStabilizerAttached;
private bool _cameraTunerAttached;
private bool _trackScalerAttached;
// gameplay 敌人容器(普通 Transform,非 RectTransform):让其跟随屏幕左缘。
// 敌人显示对象是 enemyObject_toWiggle,其定位父级是名为 empty 的普通 Transform