Exemple #1
0
 public void destroyState(MedicalState state)
 {
     stopBlending();
     states.Remove(state);
     if (StateRemoved != null)
     {
         StateRemoved.Invoke(this, state);
     }
     state.Dispose();
 }
Exemple #2
0
 public void sceneUnloading(SimScene scene)
 {
     if (sceneLoadNormalState != null)
     {
         states.Remove(sceneLoadNormalState);
         if (StateRemoved != null)
         {
             StateRemoved.Invoke(this, sceneLoadNormalState);
         }
         sceneLoadNormalState.Dispose();
         sceneLoadNormalState = null;
     }
 }
Exemple #3
0
 public void OnStateRemoved(int index)
 {
     StateRemoved?.Invoke(index);
 }