/// <summary> /// Clear state /// </summary> public void Destroy() { generator?.Destroy(); generator = null; chunks = null; UnityEngine.Object.Destroy(borders); }
public LevelScroller(ChunkGenerator generator, Transform container = null) { this.generator = generator; CreateLevelBorders(container); }