void OnDisable()
 {
     TE3GUIDMgr.Unregister(this);
 }
Пример #2
0
 void OnDisable()
 {
     TE3ScatterMgr.Instance.UnregisterScatterArea(this);
     TE3GUIDMgr.Unregister(this);
 }
            // Implicitly handled by uniqueness
            //void OnValidate() {
            //    // Spawn when added to scene
            //    if(m_SpawnedInstance == null && gameObject.scene.IsValid() && gameObject.scene.isLoaded)
            //        AutoSpawn();
            //}

            void OnEnable()
            {
                TE3GUIDMgr.Register(this);
            }
Пример #4
0
 void OnEnable()
 {
     TE3GUIDMgr.Register(this);
     TE3ScatterMgr.Instance.RegisterScatterArea(this);
 }