Esempio n. 1
0
            public virtual void CreateSettingWidget(Transform parent, BaseSettingsMenu menu)
            {
                SettingWidget = Instantiate(menu.settingWidgetTemplate, parent, false);

                SettingWidgetContainer widgetContainer = SettingWidget.GetComponent <SettingWidgetContainer>();

                SettingLabelText    = widgetContainer.LabelText;
                SettingModifyButton = widgetContainer.SettingButton;
                SettingButtonLabel  = widgetContainer.ValueText;
            }
Esempio n. 2
0
            public override void CreateSettingWidget(Transform parent, BaseSettingsMenu menu)
            {
                SettingWidget = Instantiate(menu.colorWidgetTemplate, parent, false);

                colorWidget = SettingWidget.GetComponent <ColorWidget>();

                SettingLabelText    = colorWidget.LabelText;
                SettingModifyButton = colorWidget.SettingButton;
                SettingButtonLabel  = colorWidget.ValueText;
            }