public void Initialize(EditorWindow parentWindow, TidyBlockMapCreator mapCreator) { this.parentWindow = parentWindow; this.mapCreator = mapCreator; itemSelectedTexture = GetIcon(TidyFileNames.ICON_ITEM_SELECTED); PopulateBlockList(); this.parentWindow.name = TidyMessages.BLOCK_EDITOR_WINDOW_NAME; }
void OnEnable() { //UpdateWindow.Init(); if (mapPainter == null) { mapPainter = new TidyBlockMapCreator(); mapPainter.Initialize(this); SceneView.duringSceneGui += mapPainter.DrawScene; } }