public void Remove(ChunkCube chunkCube) { if (RemoveChunk(chunkCube.ChunkToHandle)) { pool.Return(chunkCube); } }
public void OnSceneGUI() { tar = target as ChunkCube; if (Event.current.isKey && Event.current.keyCode == KeyCode.X) { tar.Remove(); } DrawChunkHandle(); }
public void Return(ChunkCube c) { c.gameObject.SetActive(false); pool.Enqueue(c); }