Esempio n. 1
0
    public Grid(int width, int height, int cellSize)
    {
        Width        = width;
        Height       = height;
        CellSize     = cellSize;
        grid         = new Cell[width, height];
        startPos     = endPos = Vector2.negativeInfinity;
        drone_script = GameObject.Find("Drone").GetComponent <InvDrone>();

        GenerateGrid();
    }
Esempio n. 2
0
 private void Start()
 {
     drone_script = GameObject.Find("Drone").GetComponent <InvDrone>();
 }