public override void Initialize() { Console.WriteLine("Enter ip to connect to:"); string ip = Console.ReadLine(); _netManager = GameServiceManager.Resolve<NetworkManager>(); _netManager.ConnectTo(ip); _downloading = true; _reported = false; _stationProvider = new StationProvider(); }
protected override void Initialize() { Debug.BeginBlock("BaseInitialization"); _stateManager = GameServiceManager.Resolve<GameStateManager>(); _stateManager.SwitchTo<ConnectingState>(); _netManager = GameServiceManager.Resolve<NetworkManager>(); GameServiceManager.Resolve<NetWrapper>().SetNetManager(_netManager); _inputManager = GameServiceManager.Resolve<InputManager>(); base.Initialize(); Debug.EndBlock(); }