|
|
|
|
|
|
public class EditorWindowAdapter : WindowAdapter { |
|
|
|
public readonly EditorWindow editorWindow; |
|
|
|
|
|
|
|
public EditorWindowAdapter(EditorWindow editorWindow) { |
|
|
|
public EditorWindowAdapter(EditorWindow editorWindow):base( true) { |
|
|
|
this.editorWindow = editorWindow; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public abstract class WindowAdapter : Window { |
|
|
|
static readonly List<WindowAdapter> _windowAdapters = new List<WindowAdapter>(); |
|
|
|
|
|
|
|
public WindowAdapter(bool inEditor = false) { |
|
|
|
this.inEditor = inEditor; |
|
|
|
} |
|
|
|
|
|
|
|
public static List<WindowAdapter> windowAdapters { |
|
|
|
get { return _windowAdapters; } |
|
|
|
|
|
|
this._surface = null; |
|
|
|
} |
|
|
|
|
|
|
|
readonly protected bool inEditor; |
|
|
|
|
|
|
|
this._binding = new WidgetsBinding(); |
|
|
|
this._binding = new WidgetsBinding(this.inEditor); |
|
|
|
} |
|
|
|
|
|
|
|
SchedulerBinding._instance = this._binding; |
|
|
|