private void OnDestroy() { if (_network != null) { SuperController.LogMessage("Shutting down VAM Launch network."); _network.Stop(); } if (_instance == this) { _instance = null; } }
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(); }
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(); }