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