コード例 #1
0
    // Update is called once per frame
    void Update()
    {
        if (Input.inputString == "f")
        {
            Tile tempStart = nwg.GetTileAtIndex((int)startSearch.x, (int)startSearch.y);
            Tile tempEnd   = nwg.GetTileAtIndex((int)endSearch.x, (int)endSearch.y);

            JumpPointSearch.aStarSearch(tempStart, tempEnd);
        }
        //movement();
        debugRays();
        //randomRotation();
        drawPath();
    }
コード例 #2
0
    public Tile GetNorth()
    {
        Tile result = container.GetTileAtIndex(gridPositionX - 1, gridPositionZ);

        return(result);
    }