static void Init() { // Get existing open window or if none, make a new one: HouseEditor window = (HouseEditor)EditorWindow.GetWindow(typeof(HouseEditor)); window.Show(); }
public WallResolver(HouseEditor editor) { this.editor = editor; wallPrefab = AssetDatabase.LoadAssetAtPath <GameObject>(WallPrefabPath); cornerWallPrefab = AssetDatabase.LoadAssetAtPath <GameObject>(CornerWallPrefabPath); wallProjectionPrefab = AssetDatabase.LoadAssetAtPath <GameObject>(WallProjectionPrefabPath); cornerWallProjectionPrefab = AssetDatabase.LoadAssetAtPath <GameObject>(CornerWallProjectionPrefabPath); if (wallPrefab == null) { Debug.LogError("Wall prefab missing: " + WallPrefabPath); } }
public WallGeneration(HouseEditor editor) { this.editor = editor; wallResolver = new WallResolver(editor); }
public DoorPlacement(HouseEditor editor) { this.editor = editor; }
public HouseEditorGrid(HouseEditor editor) { this.editor = editor; }