// 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(); }
public Tile GetNorth() { Tile result = container.GetTileAtIndex(gridPositionX - 1, gridPositionZ); return(result); }