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(); } } }
private void OnDestroy() { seqence?.Dispose(); }
public void Dispose() { timeline?.Dispose(); XResources.DestroyGameObject(ch.prefab, go); }
public void Dispose() { seqence?.Dispose(); XResources.DestroyGameObject(ch.prefab, go); }