Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            ServiceProvider = RegisterServices();

            ConsoleWriter = ServiceProvider.GetService <IUIPresenter>();

            DisplayIntro();

            var command = "";

            while (command != InputCommands.Exit)
            {
                var input = Console.ReadLine();

                if (string.IsNullOrEmpty(input))
                {
                    continue;
                }

                if (input.ToLowerInvariant() == InputCommands.Exit)
                {
                    command = InputCommands.Exit;
                    continue;
                }

                ReadInstructions(input);

                ConsoleWriter.WriteLine("");
                ConsoleWriter.WriteLine("Enter a file name or exit");
            }

            DisposeServices();
        }
Ejemplo n.º 2
0
    void Start()
    {
        uiPresenter = GetComponent <IUIPresenter>();

        TouchActionSubscribe();
        UiControlSubscribe();
        ThrowPocketSubscribe();
        PocketSubscribe();
        BucketGoalSubscribe();
    }