public void destroyState(MedicalState state) { stopBlending(); states.Remove(state); if (StateRemoved != null) { StateRemoved.Invoke(this, state); } state.Dispose(); }
public void sceneUnloading(SimScene scene) { if (sceneLoadNormalState != null) { states.Remove(sceneLoadNormalState); if (StateRemoved != null) { StateRemoved.Invoke(this, sceneLoadNormalState); } sceneLoadNormalState.Dispose(); sceneLoadNormalState = null; } }