public EngineInstance OpenNew(string title) { var instance = new EngineInstance(title); lock (_Instances) _Instances.Add(instance); instance.Stopped += OnInstanceStopped; instance.RunAsync(); return instance; }
public EngineInstance OpenInNew(string title, MultiComponentFunction func) { var instance = new EngineInstance(title); lock (_Instances) _Instances.Add(instance); instance.Stopped += OnInstanceStopped; instance.AddComponent(func); instance.RunAsync(); return instance; }