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