Update build process and disable debug mode

This commit is contained in:
2025-01-10 20:46:18 +08:00
parent 73f4e4b0f5
commit cdc4336ed5
6 changed files with 17 additions and 12 deletions

View File

@@ -37,11 +37,11 @@ namespace PeterHan.PLib.Buildings {
private static void ApplyAlwaysOperational(GameObject go) {
// Remove default components that could make a building non-operational
if (go.TryGetComponent(out BuildingEnabledButton enabled))
Object.DestroyImmediate(enabled);
UnityEngine.Object.DestroyImmediate(enabled);
if (go.TryGetComponent(out Operational op))
Object.DestroyImmediate(op);
UnityEngine.Object.DestroyImmediate(op);
if (go.TryGetComponent(out LogicPorts lp))
Object.DestroyImmediate(lp);
UnityEngine.Object.DestroyImmediate(lp);
}
/// <summary>