Esempio n. 1
0
 public void MainBase()
 {
     SelectedBuilding     = BuiltObject.CreatePrototype("MainBase", 3, 3, 3, 0, 0);
     BuildingPreview      = new GameObject();
     BuildingPreview.name = "BuildingPreviewObject";
     BuildingPreview.AddComponent <MeshFilter>();
     BuildingPreview.AddComponent <MeshRenderer>();
     BuildingPreview.transform.localScale = MainBaseModel.transform.localScale;
     BuildingPreview.GetComponent <MeshFilter>().sharedMesh        = MainBaseModel.GetComponent <MeshFilter>().sharedMesh;
     BuildingPreview.GetComponent <MeshRenderer>().sharedMaterials = MainBaseModel.GetComponent <MeshRenderer>().sharedMaterials;
     BuildingPreview.AddComponent <MeshCollider>();
 }
Esempio n. 2
0
        public MainBaseWindowsViewModel()
        {
            _model = _model ?? new MainBaseModel();

            if (!Directory.Exists($@"{_model.TempFolder}"))
            {
                Directory.CreateDirectory($@"{_model.TempFolder}");
            }

            activeWindow.Closed += (s, e) => {
                AcrobatProcess();
                ClearTempFolder(_model.TempFolder);
            };
        }