备份,准备做双端
This commit is contained in:
@@ -29,8 +29,9 @@ public class TrackCrashController : MonoBehaviour
|
||||
[SerializeField] private bool useDestro2D = true;
|
||||
[SerializeField] private bool autoRestoreOnTrackCrash = false;
|
||||
[SerializeField] private float defaultRestoreDelay = 0f;
|
||||
[SerializeField] private bool enableDebugKeyTrigger = true;
|
||||
[SerializeField] private bool debugLogs = true;
|
||||
[Tooltip("Editor-only debug hotkeys (1-5) to trigger track crash. Never active in builds.")]
|
||||
[SerializeField] private bool enableDebugKeyTrigger = false;
|
||||
[SerializeField] private bool debugLogs = false;
|
||||
[SerializeField] private bool useAutoFractureSize = true;
|
||||
[SerializeField] private float fractureCoreRadius = 0.05f;
|
||||
[SerializeField] private float fractureOuterRadius = 0.45f;
|
||||
@@ -97,8 +98,11 @@ public class TrackCrashController : MonoBehaviour
|
||||
RebuildCache();
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
private void Update()
|
||||
{
|
||||
// Editor-only debug hotkeys; compiled out of player builds so a serialized scene
|
||||
// value can never leave number-key crash triggers or per-frame Input polling active.
|
||||
if (!enableDebugKeyTrigger)
|
||||
return;
|
||||
|
||||
@@ -128,6 +132,7 @@ public class TrackCrashController : MonoBehaviour
|
||||
TriggerTrackCrash(4);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
private void RebuildCache()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user