コード例 #1
0
 /// <summary>
 /// Clear state
 /// </summary>
 public void Destroy()
 {
     generator?.Destroy();
     generator = null;
     chunks    = null;
     UnityEngine.Object.Destroy(borders);
 }
コード例 #2
0
 public LevelScroller(ChunkGenerator generator, Transform container = null)
 {
     this.generator = generator;
     CreateLevelBorders(container);
 }