コード例 #1
0
        public void OnEnabled()
        {
            sm_optionsManager.LoadOptions();
            if (!sm_redirectionInstalled)
            {
                Redirector.PerformRedirections();
                sm_redirectionInstalled = true;
            }

            ExtendedPathManager.DefinePathFinding <TPPPathFind>();
        }
コード例 #2
0
        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>();
            }
        }