63 lines
2.5 KiB
C#
63 lines
2.5 KiB
C#
using Assets.Scripts.Apis.Models;
|
||
using Assets.Scripts.UI.Prefab.Login;
|
||
using Assets.Scenes.Ride.Scripts.Model;
|
||
using System.Collections;
|
||
using System.Collections.Generic;
|
||
using UnityEngine;
|
||
using System.Net;
|
||
|
||
public static class App
|
||
{
|
||
public static string Host = "http://192.168.0.97:5082/";
|
||
|
||
public static string AppVersion = "1.0.0";
|
||
|
||
public static int RouteIdParam = 0;
|
||
public static UserResultModel CurrentUser { get; set; }
|
||
public static string WxAppId = "wx9e8ca734e024f084";
|
||
public static string WxAppSecret = "906abafb2a18bc7a66ccfa5550f859b6";
|
||
|
||
public static string MapBoxAccessToken => "pk.eyJ1IjoiYW5keXNqdCIsImEiOiJja2ZhajE5OGwwamRiMnltcW96bHk0ZWFuIn0.GvKanc6UveWSvIjS9HfBPA";
|
||
|
||
public static double latitude { get; internal set; }
|
||
public static double longitude { get; internal set; }
|
||
|
||
public static bool FromLogin = false;
|
||
|
||
/// <summary>
|
||
/// 场景跳转传值
|
||
/// Name,MapListPanel
|
||
/// xxx,bbb
|
||
/// </summary>
|
||
public static System.Collections.Generic.Dictionary<string, string> MainSceneParam = new Dictionary<string, string>();
|
||
public static IDictionary<string,Texture> TextureCache = new Dictionary<string, Texture>();
|
||
public static Texture CurrentUserHeadTexture;
|
||
public static RouteResult routeResult;//骑行记录向骑行场景传值
|
||
public static Texture DefaultRotateTexture;
|
||
//全局用 输入框或者下拉框修改标志位
|
||
public static bool isChanged { get; set; }
|
||
public static string notifyContent { get; internal set; }
|
||
|
||
public static RideSetting rideSetting = new RideSetting();
|
||
public static string pageName { 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 TcpAddress { get; private set; } = new IPEndPoint(IPAddress.Parse("192.168.0.97"), 21001);
|
||
public static Dictionary<string, Dictionary<dynamic, Texture>> propTextureCache;
|
||
static App()
|
||
{
|
||
#if !UNITY_EDITOR
|
||
Host = "http://pf.juze.pro/";
|
||
UdpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 21000);
|
||
TcpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 21001);
|
||
#endif
|
||
propTextureCache = new Dictionary<string, Dictionary<dynamic, Texture>>()
|
||
{
|
||
{"mapImgCache",new Dictionary<dynamic, Texture>() },
|
||
{"mapHBCache",new Dictionary<dynamic, Texture>() },
|
||
{"recordCache",new Dictionary<dynamic, Texture>() },
|
||
};
|
||
}
|
||
}
|