Exemple #1
0
    static void Init()
    {
        // Get existing open window or if none, make a new one:
        HouseEditor window = (HouseEditor)EditorWindow.GetWindow(typeof(HouseEditor));

        window.Show();
    }
Exemple #2
0
        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);
            }
        }
Exemple #3
0
 public WallGeneration(HouseEditor editor)
 {
     this.editor  = editor;
     wallResolver = new WallResolver(editor);
 }
Exemple #4
0
 public DoorPlacement(HouseEditor editor)
 {
     this.editor = editor;
 }
Exemple #5
0
 public HouseEditorGrid(HouseEditor editor)
 {
     this.editor = editor;
 }