using UnityEngine; using XGame.Framework.Asset; namespace XGame.Framework { [CreateAssetMenu(fileName = "XGameConfig", menuName = "XGame/XGame Config")] public sealed class XGameConfig : ScriptableObject { /// /// 项目名 /// public string productName = "Demo"; /// /// 项目的启动Assembly GUID /// public string launchAssemblyGUID; /// /// 项目的启动Assembly 名字 /// public string launchAssemblyName; /// /// 项目的启动场景GUID /// public string launchSceneGUID; /// /// 项目的启动场景名字 /// public string launchSceneName; /// /// 项目的启动脚本GUID /// XGame.Framework.IGameLogic的实现类 /// public string gameLogicGUID; /// /// 项目的启动脚本名字 /// XGame.Framework.IGameLogic的实现类 /// public string gameLogicTypeName; /// /// 是否开启Debug /// 开启了会打印消息的收发信息 /// public bool isSessionDebug; #region 静态代码 Runtime用 public static IAssetLoadAsync LoadAsync() { return AssetManager.LoadAsync(Define.AssetDefine.XGAME_CONFIG_NAME); } public static void Unload(XGameConfig config) { if (config != null) { AssetManager.Recycle(config); } } #endregion } }