4699ce7287
very primitive. need to import utilities, so im backing up beforehand
30 lines
614 B
C#
30 lines
614 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
|
|
// INSPIRED BY "CODE MONKEY" ON YOUTUBE
|
|
public class LogicGrid
|
|
{
|
|
private int width;
|
|
private int height;
|
|
private int[,] gridArray;
|
|
|
|
public LogicGrid(int width, int height)
|
|
{
|
|
this.width = width;
|
|
this.height = height;
|
|
|
|
gridArray = new int[width, height];
|
|
|
|
Debug.Log(width + " " + height);
|
|
|
|
for(int x = 0; x < gridArray.GetLength(0); x++)
|
|
for(int y = 0; y < gridArray.GetLength(1); y++)
|
|
{
|
|
Debug.Log(x + ", " + y);
|
|
}
|
|
|
|
}
|
|
}
|