Example #1
0
        private void OnShipDockStart()
        {
            Tester.Instance.SetDefaultTester(FWTester.Instance);
            Tester.Instance.Init(FWTester.Instance);
            Tester.Instance.Log(FWTester.LOG0, "ShipDock start up..");

            ShipDockConsts.NOTICE_SCENE_UPDATE_READY.Add(OnSceneUpdateReady);

            ShipDockApp app = ShipDockApp.Instance;

            app.AddStart(OnAppStarted);

            Servers servers = app.Servers;

            servers.OnInit += OnServersInit;
            servers.Add(new FWServer());
            servers.Add(new FWDataServer());
            servers.Add(new FWComponentServer());
            servers.Add(new FWCamerasServer());
            servers.AddOnServerFinished(OnFinished);
        }