小地图分辨率微调,影子选手包含自己
This commit is contained in:
parent
e4d4333357
commit
584cba79ae
File diff suppressed because it is too large
Load Diff
@ -98,9 +98,9 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
var screenWidth = UnityEngine.Screen.width;
|
var screenWidth = UnityEngine.Screen.width;
|
||||||
var screenHeight = UnityEngine.Screen.height;
|
var screenHeight = UnityEngine.Screen.height;
|
||||||
|
|
||||||
var sw_world = _minicamera.ViewportToWorldPoint(new Vector3(0.2f, 0.2f, 180));
|
var sw_world = _minicamera.ViewportToWorldPoint(new Vector3(0.25f, 0.1f, 160));
|
||||||
var sw = _map.WorldToGeoPosition(sw_world);
|
var sw = _map.WorldToGeoPosition(sw_world);
|
||||||
var ne_world = _minicamera.ViewportToWorldPoint(new Vector3(0.955f, 0.955f, 180));
|
var ne_world = _minicamera.ViewportToWorldPoint(new Vector3(0.75f, 0.9f, 90));
|
||||||
var ne = _map.WorldToGeoPosition(ne_world);
|
var ne = _map.WorldToGeoPosition(ne_world);
|
||||||
|
|
||||||
return new Vector2dBounds(new Vector2d(sw.x, sw.y), new Vector2d(ne.x, ne.y));
|
return new Vector2dBounds(new Vector2d(sw.x, sw.y), new Vector2d(ne.x, ne.y));
|
||||||
|
|||||||
@ -127,7 +127,7 @@ namespace Assets.Scripts.Apis
|
|||||||
|
|
||||||
public JsonResult<MapRouteRankingList> GetRouteRanking(int id,string type, int pageIndex,int pageSize,string name)
|
public JsonResult<MapRouteRankingList> GetRouteRanking(int id,string type, int pageIndex,int pageSize,string name)
|
||||||
{
|
{
|
||||||
var url = $"Map/v1/GetRouteRanking?pageIndex={ 0 }&pageSize={ pageSize }&name={ name }&id={ id }&type={ type }&filterSelf={ true }";
|
var url = $"Map/v1/GetRouteRanking?pageIndex={ 0 }&pageSize={ pageSize }&name={ name }&id={ id }&type={ type }&filterSelf={ false }";
|
||||||
|
|
||||||
return Get<JsonResult<MapRouteRankingList>>(url);
|
return Get<JsonResult<MapRouteRankingList>>(url);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -43,7 +43,7 @@ public static class App
|
|||||||
public static int firstEnter { get; set; }
|
public static int firstEnter { get; set; }
|
||||||
|
|
||||||
public static IPEndPoint UdpAddress { get; private set; } = new IPEndPoint(IPAddress.Parse("192.168.0.97"), 11000);
|
public static IPEndPoint UdpAddress { get; private set; } = new IPEndPoint(IPAddress.Parse("192.168.0.97"), 11000);
|
||||||
public static IPEndPoint TcpAddress { get; private set; } = new IPEndPoint(IPAddress.Parse("192.168.0.97"), 11001);
|
public static IPEndPoint TcpAddress { get; private set; } = new IPEndPoint(IPAddress.Parse("192.168.0.97"), 21001);
|
||||||
|
|
||||||
static App()
|
static App()
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user