コード例 #1
0
        public void Init(CustomizerAvatarController customizerAvatarController, Texture2D[] defaultSwatchTextures, string categoryToSelect)
        {
            itemCustomizationModel = new DItemCustomization();
            itemCustomizationModel.SetDefaultTextures(defaultSwatchTextures);
            ClothingDesignerOutliner component = customizerAvatarController.GetComponent <ClothingDesignerOutliner>();

            propertyCustomizationController.SetOutliner(component);
            mainModel = new CustomizerModel(itemCustomizationModel);
            propertyCustomizationController.SetModel(mainModel);
            customizerAvatarController.SetModel(mainModel);
            templateSelectionController.SetModel(itemCustomizationModel);
            templateChosenController.SetModel(itemCustomizationModel);
            if (mode == CustomizerMode.CLOTHING)
            {
                equipmentCustomizationController.SetDependancies(templateSelectionController, templateChosenController, propertyCustomizationController, mainModel);
                EventBus.DispatchEvent(new CustomizerActiveSwatchEvents.SetIsFabric(isFabric: true));
                (templateSelectionController as ClothingTemplateSelectionController).Init(categoryToSelect);
            }
            else if (mode == CustomizerMode.FURNITURE)
            {
                equipmentCustomizationController.SetDependancies(templateSelectionController, templateChosenController, propertyCustomizationController, mainModel);
            }
            equipmentCustomizationController.Init();
            Service.Get <ICPSwrveService>().StartTimer("designer_time", "my_style.designer");
        }
コード例 #2
0
 public void SetModel(DItemCustomization itemModel)
 {
     this.itemModel = itemModel;
 }
コード例 #3
0
 public void SetModel(CustomizerModel customizerModel)
 {
     this.customizerModel = customizerModel;
     itemModel            = customizerModel.ItemCustomization;
 }
コード例 #4
0
 private bool onItemModelReset(CustomizerModelEvents.ResetItemModelEvent evt)
 {
     reset();
     itemModel = customizerModel.ItemCustomization;
     return(false);
 }
コード例 #5
0
 public void SetModel(DItemCustomization itemModel)
 {
 }