Example #1
0
 public override void OnBeforeRemovedFromContainer()
 {
     if (_operationalSink != null)
     {
         FreeSink(_operationalSink);
         _operationalSink = null;
     }
     base.OnBeforeRemovedFromContainer();
     _resourceSink.OnBeforeRemovedFromContainer();
 }
Example #2
0
 public override void OnRemovedFromScene()
 {
     Block.OnUpgradeValuesChanged -= UpgradeValuesChanged;
     foreach (var k in _handlers)
     {
         k.Dispose();
     }
     _handlers.Clear();
     CommitCoolingPower(remove: true);
     ThermalPhysics.OnBeforeRemovedFromContainer();
 }
 public override void OnBeforeRemovedFromContainer()
 {
     base.OnBeforeRemovedFromContainer();
     ResourceSink.OnBeforeRemovedFromContainer();
 }