override void GenerateBlocks() { DestroyBlocks(); generatedBlocks = new List <LevelBlock>(); capture = capture ?? GetComponent <LevelBuilderGridCapture>(); Vector2IntUtil.Run(gridSize, CreateBlock); }
private void OnDrawGizmosSelected() { Vector3 position = transform.position; const float length = 30; Gizmos.DrawLine(position + Vector3.left * length, position + Vector3.right * length); Gizmos.DrawLine(position + Vector3.down * length, position + Vector3.up * length); Vector2IntUtil.Run(blockSize, DrawRect); }
void GenerateBlocks() { DestroyBlocks(); generatedBlocks = new List <T>(); Vector2IntUtil.Run(blockSize, CreateBlock); }