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(); }
private void Start() { drone_script = GameObject.Find("Drone").GetComponent <InvDrone>(); }