Esempio n. 1
0
 protected override void DeregisterSpawner()
 {
     for (int i = 0; i < SpawnObjectGroup.Count; i++)
     {
         if (SpawnObjectGroup[i].SpawnTransform != null && SpawnObjectGroup[i].PoolObject != null)
         {
             Facade.DeregisterObjectSpawnPool(SpawnObjectGroup[i].SpawnTransform);
         }
     }
     GameManagerAgent.KillObject(deactiveObjectMount);
 }
 /// <summary>
 /// 注销并销毁
 /// </summary>
 protected virtual void DeregisterSpawner()
 {
     Facade.DeregisterObjectSpawnPool(this);
     GameManagerAgent.KillObject(deactiveObjectMount);
 }
 /// <summary>
 /// 回收Uncollectable的对象,直接被销毁
 /// </summary>
 public virtual void DespawnUncollectible()
 {
     GameManagerAgent.KillObjects(UncollectibleHashSet);
 }