Ejemplo n.º 1
0
        public void Start()
        {
            if (Instance != null)
            {
                Destroy(this);
                return;
            }

            Instance = this;

            Satellites = new SatelliteManager(this);
            Antennas   = new AntennaManager(this);
            Network    = new NetworkManager(this);
            Gui        = new GuiManager();
            Renderer   = NetworkRenderer.AttachToMapView(this);
            Settings   = new Settings(this);
            Debug      = new DebugUnit(this);

            RTUtil.Log("RTCore loaded.");

            foreach (var v in FlightGlobals.Vessels)
            {
                Satellites.RegisterProto(v);
                Antennas.RegisterProtos(v);
            }
        }
Ejemplo n.º 2
0
        public void Start()
        {
            if(Instance != null) {
                Destroy(this);
                return;
            }

            Instance = this;

            Satellites = new SatelliteManager(this);
            Antennas = new AntennaManager(this);
            Network = new NetworkManager(this);
            Gui = new GuiManager();
            Renderer = NetworkRenderer.AttachToMapView(this);
            Settings = new Settings(this);
            Debug = new DebugUnit(this);

            RTUtil.Log("RTCore loaded.");

            foreach (var v in FlightGlobals.Vessels) {
                Satellites.RegisterProto(v);
                Antennas.RegisterProtos(v);
            }
        }