public SampleEngine(UIApplication app)
        {
            application = app;
            viewPortal  = new ViewSamplePortal(app);

            CoroutineScheduler.Run();
        }
        /// <inheritdoc />
        public void Dispose()
        {
            foreach (var context in allContext)
            {
                context.Terminate();
                context.Application = null;
            }

            allContext.Clear();
            viewPortal?.Close();
            viewPortal = null;

            CoroutineScheduler.Stop();
        }