Exemplo n.º 1
0
 public static ConsoleHintUIController Create(
     IConsoleHintModel model,
     IHintUIView hintView,
     IConsoleUIView consoleView,
     IConsoleInputDetectorModel input,
     IConsoleSettings settings
     )
 {
     return(new ConsoleHintUIController(
                model,
                hintView,
                consoleView,
                new ConsoleHintEntryUIViewFactory(),
                input,
                settings
                ));
 }
Exemplo n.º 2
0
        public ConsoleHintUIController(
            IConsoleHintModel model,
            IHintUIView hintView,
            IConsoleUIView consoleView,
            IConsoleHintEntryUIViewFactory entryFactory,
            IConsoleInputDetectorModel input,
            IConsoleSettings settings
            )
        {
            this.model            = model;
            this.view             = hintView;
            this.entryFactory     = entryFactory;
            this.input            = input;
            this.settings         = settings;
            model.OnEnableChange += HandleEnableChange;
            consoleView.InputField.onValueChanged.AddListener(HandleInputValueChanged);

            hintView.SetActive(false);
        }