Пример #1
0
 private void OnPlayChanged(PlayModeStateChange state)
 {
     if (state == PlayModeStateChange.ExitingEditMode || state == PlayModeStateChange.ExitingPlayMode ||
         state == PlayModeStateChange.EnteredEditMode)
     {
         seqence?.Dispose();
         seqence = null;
         CleanEnv();
         if (window != null)
         {
             window.Dispose();
             window.Repaint();
         }
     }
 }
Пример #2
0
 private void OnDestroy()
 {
     seqence?.Dispose();
 }
Пример #3
0
 public void Dispose()
 {
     timeline?.Dispose();
     XResources.DestroyGameObject(ch.prefab, go);
 }
Пример #4
0
 public void Dispose()
 {
     seqence?.Dispose();
     XResources.DestroyGameObject(ch.prefab, go);
 }