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(); }
void Start() { uiPresenter = GetComponent <IUIPresenter>(); TouchActionSubscribe(); UiControlSubscribe(); ThrowPocketSubscribe(); PocketSubscribe(); BucketGoalSubscribe(); }