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); }