private Vector3Int GetRandomLocationAtEdgeOfGrid() { int side = Random.Range(0, (int)Sides.ENUMEND); int x = 0; int z = 0; if (side == (int)Sides.UP) { x = Random.Range(0, _manager.GetWidth()); } else if (side == (int)Sides.DOWN) { x = Random.Range(0, _manager.GetWidth()); z = _manager.GetHeight() - 1; } else if (side == (int)Sides.LEFT) { z = Random.Range(0, _manager.GetHeight()); } else if (side == (int)Sides.RIGHT) { z = Random.Range(0, _manager.GetHeight()); x = _manager.GetWidth() - 1; } return(new Vector3Int(x, 0, z)); }