Exemplo n.º 1
0
        private void OnDestroy()
        {
            if (_network != null)
            {
                SuperController.LogMessage("Shutting down VAM Launch network.");
                _network.Stop();
            }

            if (_instance == this)
            {
                _instance = null;
            }
        }
Exemplo n.º 2
0
        public override void Init()
        {
            if (_instance != null)
            {
                SuperController.LogError("You can only have one instance of VAM Launch active!");
                return;
            }

            if (containingAtom == null || containingAtom.type == "CoreControl")
            {
                SuperController.LogError("Please add VAM Launch to in scene atom!");
                return;
            }

            _instance = this;

            InitStorables();
            InitOptionsUI();
            InitActions();
            InitNetwork();
        }
Exemplo n.º 3
0
        public override void Init()
        {
            if (_instance != null)
            {
                SuperController.LogError("You can only have one instance of VAM Launch active!");
                return;
            }

            if (containingAtom == null || containingAtom.type == "CoreControl")
            {
                SuperController.LogError("Please add VAM Launch to an empty atom instead!");
                return;
            }

            _instance = this;

            InitController();
            InitValues();
            InitMenu();
            InitRenderers();

            InitNetwork();
        }