コード例 #1
0
        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();
        }
コード例 #2
0
ファイル: GameClient.cs プロジェクト: SSX1/Space-Station-X1
        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();
        }