Ejemplo n.º 1
0
        public override void SetupWindow()
        {
            base.SetupWindow();
            titleContent.text = WindowName();

            var baseModelSettings      = Singleton.UMVC.Instance.Settings.model;
            var baseControllerSettings = Singleton.UMVC.Instance.Settings.controller;
            var baseViewSettings       = Singleton.UMVC.Instance.Settings.view;

            model = new UnitySerializableModelComponent
            {
                BaseNamespace = baseModelSettings.BaseNamespace,
                ClassFields   = new List <UnitySerializableClassField>(),
                ClassExtends  = baseModelSettings.ClassExtends
            };

            controller = new UnitySerializableControllerComponent
            {
                BaseNamespace = baseControllerSettings.BaseNamespace,
                ClassExtends  = baseControllerSettings.ClassExtends
            };
            view = new UnitySerializableViewComponent
            {
                BaseNamespace = baseViewSettings.BaseNamespace,
                ClassExtends  = baseViewSettings.ClassExtends
            };
        }
Ejemplo n.º 2
0
        public override void SetupWindow()
        {
            base.SetupWindow();
            titleContent.text = WindowName();
            _wantCreateSubDir = true;
            _outputDir        = Application.dataPath;
            _newSubdir        = Application.dataPath;

            var baseModelSettings      = Singleton.UMVC.Instance.Settings.model;
            var baseControllerSettings = Singleton.UMVC.Instance.Settings.controller;
            var baseViewSettings       = Singleton.UMVC.Instance.Settings.view;

            model = new UnitySerializableModelComponent
            {
                BaseNamespace = baseModelSettings.BaseNamespace,
                ClassFields   = new List <UnitySerializableClassField>(),
                ClassExtends  = baseModelSettings.ClassExtends
            };

            controller = new UnitySerializableControllerComponent
            {
                BaseNamespace = baseControllerSettings.BaseNamespace,
                ClassExtends  = baseControllerSettings.ClassExtends
            };
            view = new UnitySerializableViewComponent
            {
                BaseNamespace = baseViewSettings.BaseNamespace,
                ClassExtends  = baseViewSettings.ClassExtends
            };

            _serializedGameObject = new SerializedObject(this);
            _serializedModel      = _serializedGameObject.FindProperty("model");
            _serializedController = _serializedGameObject.FindProperty("controller");
            _serializedView       = _serializedGameObject.FindProperty("view");
        }