1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- using System;
- using UnityEngine;
- namespace Seengene.XDKUnityPluginCloud {
- public delegate void OnDebugModeChangeHandler();
- public class XDKConfigs {
- public static event OnDebugModeChangeHandler OnDebugModeChange;
- /// <summary>
- /// 云定位获取SessionID URL
- /// </summary>
- public static string AuthorizationAPIAddress = "";
- /// <summary>
- /// 云定位上传图片及相机位姿URL
- /// </summary>
- public static string RelocationAPIAddress = "";
- /// <summary>
- /// 云定位地图ID
- /// </summary>
- public static string MapId = "";
- /// <summary>
- /// 是否开启算法重定位
- /// </summary>
- public static bool IfRelocationOn = true;
- /// <summary>
- /// 是否开启打印日志
- /// </summary>
- public static bool IfLogOn = true;
- /// <summary>
- /// 是否Debug模式
- /// </summary>
- private static bool m_IfDebugOn = true;
- public static bool IfDebugOn {
- get { return m_IfDebugOn; }
- set {
- m_IfDebugOn = value;
- OnDebugModeChange?.Invoke();
- }
- }
- /// <summary>
- /// 是否保存图片到本地
- /// </summary>
- public static bool IfSaveImages = false;
- public static void SetDefault() {
- AuthorizationAPIAddress = "";
- RelocationAPIAddress = "";
- MapId = "";
- IfRelocationOn = true;
- IfLogOn = true;
- IfDebugOn = false;
- IfSaveImages = false;
- }
- }
- }
|