예제 #1
0
 override void GenerateBlocks()
 {
     DestroyBlocks();
     generatedBlocks = new List <LevelBlock>();
     capture         = capture ?? GetComponent <LevelBuilderGridCapture>();
     Vector2IntUtil.Run(gridSize, CreateBlock);
 }
예제 #2
0
        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);
        }
예제 #3
0
 void GenerateBlocks()
 {
     DestroyBlocks();
     generatedBlocks = new List <T>();
     Vector2IntUtil.Run(blockSize, CreateBlock);
 }