void OnDrawGizmos() { if (generator && generator.EnableDebug) { Gizmos.color = Color.white; Gizmos.DrawWireCube(generator.ChunkToWorldCenter(chunkPosition), Vector3.Scale(generator.CellSize, generator.ChunkScale)); } }