public void OnEnabled() { sm_optionsManager.LoadOptions(); if (!sm_redirectionInstalled) { Redirector.PerformRedirections(); sm_redirectionInstalled = true; } ExtendedPathManager.DefinePathFinding <TPPPathFind>(); }
public override void OnCreated(ILoading loading) { base.OnCreated(loading); if (sm_optionsManager != null) { sm_optionsManager.LoadOptions(); } if (m_initializer == null) { m_initializer = new GameObject("CSL-Traffic Custom Prefabs"); m_initializer.AddComponent <Initializer>(); } }