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