public override void OnStart(StartState state) { RecycleField = part.FindModelComponent <Collider> (RecycleField_name); Debug.Log(String.Format("[EL Recycler] OnStart: {0}", RecycleField)); if (RecycleField != null) { RecycleField.enabled = false; RecycleField.isTrigger = true; //FIXME workaround for KSP 1.1 bug } if (state == PartModule.StartState.None || state == PartModule.StartState.Editor) { return; } sm.Start(RecycleField); }
public override void OnStart(StartState state) { if (CompatibilityChecker.IsWin64()) { return; } RecycleField = part.FindModelComponent <Collider> (RecycleField_name); Debug.Log(String.Format("[EL Recycler] OnStart: {0}", RecycleField)); if (RecycleField != null) { RecycleField.enabled = false; } if (state == PartModule.StartState.None || state == PartModule.StartState.Editor) { return; } sm.Start(RecycleField); }