void MoveRaidingShip(Raid r) { Ship raider = r.raider; Ship target = r.target; List <int[]> path = pathfinder.AStarSearch(raider.gridPos, target.gridPos); int[] newGridPos = path[1]; GameManager.instance.map.MoveObject(raider.gameObject, newGridPos); raider.SetGridPos(newGridPos); }