Exemple #1
0
 public void OnSettingsUI(UIHelperBase helper)
 {
     if (mOptions == null)
     {
         mOptions = new GameObject("RoadNamerOptions").AddComponent <MarkARouteOptions>();
     }
     mOptions.generateSettings(helper);
 }
Exemple #2
0
        public override void OnLevelLoaded(LoadMode mode)
        {
            if (mode == LoadMode.LoadGame || mode == LoadMode.NewGame)
            {
                UIView view = UIView.GetAView();
                UI = ToolsModifierControl.toolController.gameObject.AddComponent <MainPanel>();

                ModSettings.LoadSettings();

                m_renderingManager         = RenderingManager.instance;
                m_renderingManager.enabled = true;

                if (m_renderingManager != null && !m_renderingManager.m_registered)
                {
                    RenderManager.RegisterRenderableManager(m_renderingManager);
                    m_renderingManager.m_registered = true;
                    m_renderingManager.ForceUpdate();
                }

                MarkARouteOptions.mInGame = true;
                MarkARouteOptions.update();
            }
        }