public static ChunkThread StartNew(Vector2Int chunkLocation, VOX.Map map, Vector3Int chunkSize) { var thread = new ChunkThread(); thread.Start(chunkLocation, map, chunkSize); return(thread); }
public void Start(Vector2Int chunkLocation, VOX.Map map, Vector3Int chunkSize) { if (IsRunning) { return; } lock (locker) { if (IsRunning) { return; } _th = new Thread(Main); IsRunning = true; _th.Start(new ThreadStartArgs() { location = chunkLocation, map = map, chunkSize = chunkSize }); } }
public Chunk(VOX.Map parent, Vector2Int location) { Location = location; Parent = parent; }