Update build process and disable debug mode
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user