protected virtual void RecordDestruction()
 {
     if (!m_ignoreOnDestroy)
     {
         SpawnedObjectManager.RemoveSpawnedObjectData(this);
     }
     m_ignoreOnDestroy = false;
 }
Exemple #2
0
 public override void Awake()
 {
     base.Awake();
     m_instance = this;
 }
 public override void Start()
 {
     base.Start();
     SpawnedObjectManager.AddSpawnedObjectData(this);
 }