示例#1
0
        private void Awake()
        {
            if (m_instance != null)
            {
                Debug.LogWarning("Another instance of GizmoManager Exists");
            }

            m_instance = this;
            Cleanup();
            Initialize();
            AwakeOverride();
        }
示例#2
0
        private void OnDestroy()
        {
            Cleanup();

            if (m_instance == this)
            {
                m_instance       = null;
                m_typeToMaterial = null;
                m_types          = null;
            }

            OnDestroyOverride();
        }