Example #1
0
        protected Context(BaseViewSettings viewSettings)
        {
            Injector        = new Injector();
            EventDispatcher = new EventDispatcher();
            CommandMap      = new CommandMap(Injector, EventDispatcher);

            Injector.MapValue(Injector);
            Injector.MapValue(EventDispatcher);
            Injector.MapValue(viewSettings);

            Startup();
        }
Example #2
0
        public override void SetupWindow()
        {
            base.SetupWindow();
            titleContent.text = WindowName();
            _outputNamespace  = Singleton.UMVC.Instance.Settings.outputNamespace;
            model             = Singleton.UMVC.Instance.Settings.model;
            controller        = Singleton.UMVC.Instance.Settings.controller;
            view = Singleton.UMVC.Instance.Settings.view;

            _serializedGameObject = new SerializedObject(this);
            _serializedModel      = _serializedGameObject.FindProperty("model");
            _serializedController = _serializedGameObject.FindProperty("controller");
            _serializedView       = _serializedGameObject.FindProperty("view");
        }
 public FramewerkDemoContext(BaseViewSettings viewSettings) : base(viewSettings)
 {
 }