public static List <Point> GetPointsByPos(List <Vector2> listVec2) { List <Point> points = new List <Point>(); for (int i = 0; i < listVec2.Count; i++) { Vector3Int pointPos = VTool.ToPointPos(listVec2[i]); points.Add(GetPointByPos(pointPos)); } return(points); }
public void ShowTowerUi() { Vector3Int pointPos = VTool.ToPointPos(ControllPoint.Position); if (!GameManager.Instance.HadThisPoint(pointPos)) { return; } FontPoint = GameManager.GetPointByPos(pointPos); if (FontPoint.state == PointState.noThing) { OpenPanel(UiState.OpenChoosePanel, UiTool.GetTowerUiPos(transform, UiCamera, ControllPoint.Position)); } }
public static Point GetPointByPos(Vector3 pos) { Vector3Int pointPos = VTool.ToPointPos(pos); return(GetPointByPos(pointPos)); }