示例#1
0
    internal GameBoardComponent QueryNextStep(Vector2 o, Vector2 d)
    {
        try
        {
            var component = GetBoardObjectByVector(o);
            if (component != null)
            {
                return(PathingHandler.DetermineNextNode(component, d));
            }
            else
            {
                return(null);
            }
        }

        catch (Exception e)
        {
            Debug.Log(e.ToString()); return(null);
        }
    }
 public void OnDrawPath()
 {
     PathingHandler.ParseVectorDistance
         (GetOriginVectorFromInput(), GetDestinationVectorFromInput());
 }