ObjectMassEraseOperation.cs 508 B

123456789101112131415161718
  1. #if UNITY_EDITOR
  2. using UnityEngine;
  3. using System.Collections.Generic;
  4. namespace O3DWB
  5. {
  6. public class ObjectMassEraseOperation : IObjectEraseOperation
  7. {
  8. #region Public Methods
  9. public void Perform()
  10. {
  11. List<GameObject> gameObjectsForMassEraseOperation = ObjectEraser.Get().GetGameObjectsForMassEraseOperation();
  12. ObjectErase.EraseObjectHierarchiesInObjectCollection(gameObjectsForMassEraseOperation);
  13. }
  14. #endregion
  15. }
  16. }
  17. #endif