private void SetDepressurizing() { if (m_isDepressurizing) { var tmpGasId = m_oxygenGasId; ResourceSink.RemoveType(ref tmpGasId); } else { ResourceSink.AddType(ref OxygenSinkInfo); } SourceComp.SetProductionEnabledByType(m_oxygenGasId, m_isDepressurizing); ResourceSink.Update(); }