private void Awake() { if (Instance != null) { throw new Exception("multiple DebugView instances!"); } Instance = this; DontDestroyOnLoad(this); CreateViews(); _modes.ForEach(m => m.RegisterServices()); }
public DebugOverviewMode(DebugView view) { _view = view; _modes = view.Modes.ToList(); }