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