public static LevelCleaner GetInstance()
 {
     if (_instance == null)
     {
         GameObject g = new GameObject();
         _instance = g.AddComponent <LevelCleaner>();
     }
     return(_instance);
 }
 private void Start()
 {
     _instance = this;
     LevelGenerator.GetLevelGenerator().OnGenerate += () => StartCleaning(LevelGenerator.GetLevelGenerator().GeneratedObjects);
 }