private void stopTimelineIfPlaying() { if (timelineController.Playing) { timelineController.stopPlayback(false); } }
public void shutdownContext(AnomalousMvcContext context, bool removeContext, bool resumePreviousContext) { timelineController.stopPlayback(false); if (removeContext) { context.shutdown(); contextManager.removeContext(context); } RocketWidgetInterface.clearAllCaches(); RocketInterface.Instance.SystemInterface.RemoveRootPath(context.ResourceProvider.BackingLocation); if (resumePreviousContext) { AnomalousMvcContext nextContext = contextManager.CurrentContext; if (nextContext != null) { setupContextToRun(nextContext); nextContext.resume(); } } }