예제 #1
0
    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);
    }
예제 #2
0
        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));
            }
        }
예제 #3
0
    public static Point GetPointByPos(Vector3 pos)
    {
        Vector3Int pointPos = VTool.ToPointPos(pos);

        return(GetPointByPos(pointPos));
    }