I’m making a turn-based game.
UpdateGraphs and seeker.pathCallback are slower on Iphone than android phone.
redCube Turn --------------------------------------------------------
UpdateGraph(true, currentTp);
_seeker.StartPath(redCube.position, blueCube.GetPosition());
redCube move complete ----------------------------------------------
AstarPath.OnGraphsUpdated += UpdateGraphComplete;
UpdateGraph(false, currentTp);
public void UpdateGraph(bool walkability, TilePoint point)
{
var colBounds = new Bounds(point.getWorldPosition(), Vector3.one);
var guo = new GraphUpdateObject(colBounds);
guo.modifyWalkability = true;
guo.setWalkability = walkability;
AstarPath.active.UpdateGraphs(guo);
}
After UpdateGraphComplete is called, other redCubes move
how can I speed up callback?