展前冒死重构
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user