46 lines
1.4 KiB
C#
Raw Normal View History

2024-12-14 18:27:59 +08:00
using QFramework;
using System;
using System.Collections;
using System.Collections.Generic;
2025-01-08 17:05:35 +08:00
using System.Xml.Linq;
2024-12-14 18:27:59 +08:00
using UnityEngine;
using XMLTool;
public class Global : Singleton<Global>
{
Global() { }
public XMLTool.AppData appData;
public Module curModule;
2025-02-12 17:36:00 +08:00
public Body3D.Body cur3DPart;
2025-03-28 12:03:55 +08:00
#if UNITY_WEBGL && !UNITY_EDITOR
public static string dataPath = Application.dataPath + "/Data";
#else
2024-12-16 13:25:22 +08:00
public static string dataPath = Application.dataPath + "/../Data";
#endif
2024-12-16 13:25:22 +08:00
public static string deviceIconsPath = dataPath + "/DeviceIcons/";
public static string audioPath = dataPath + "/Audio/";
public static string appXmlPath = dataPath + "/App.xml";
2024-12-17 16:40:11 +08:00
public static string imagePath = dataPath + "/Image/";
2024-12-17 18:07:20 +08:00
public static string videoPath = dataPath + "/Video/";
2024-12-18 16:20:06 +08:00
public static string xmlPath = dataPath + "/Xml/";
public static string reportPath = dataPath + "/Report/";
public static string reportDemoPath = reportPath + "Demo.docx";
2024-12-17 14:26:40 +08:00
public static APPSetting appSetting { get; } = new APPSetting();
2024-12-31 17:06:00 +08:00
public static string HighLightTrigger = "HighLightTrigger";
2024-12-14 18:27:59 +08:00
public enum AppType
{
UnKnow = 1 << 0,
Study = 1 << 1,
Exam = 1 << 2,
All = 1 << 3,
}
public static AppType appTpe = AppType.UnKnow;
2025-01-08 17:05:35 +08:00
public static Dictionary<string, XElement> moduleDict = new Dictionary<string, XElement>();
2024-12-31 17:06:00 +08:00
2024-12-14 18:27:59 +08:00
}