This commit is contained in:
PC-20230316NUNE\Administrator 2024-10-16 20:41:40 +08:00
parent 44c3ea001a
commit 6da2f9e691
1866 changed files with 36068 additions and 25732 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -71,6 +71,14 @@ MonoBehaviour:
FilterRuleName: CollectAll FilterRuleName: CollectAll
AssetTags: AssetTags:
UserData: UserData:
- CollectPath: Assets/HotAssets/HotDlls/GameScripts.dll.bytes
CollectorGUID: fe669a0456fe2d64dae66542a8ca9d4d
CollectorType: 0
AddressRuleName: AddressByFileName
PackRuleName: PackRawFile
FilterRuleName: CollectAll
AssetTags:
UserData:
- GroupName: Launcher - GroupName: Launcher
GroupDesc: GroupDesc:
AssetTags: Launcher AssetTags: Launcher

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: fe669a0456fe2d64dae66542a8ca9d4d
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -147,7 +147,6 @@ Transform:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 67180524} m_GameObject: {fileID: 67180524}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
@ -156,6 +155,7 @@ Transform:
- {fileID: 1371077986} - {fileID: 1371077986}
- {fileID: 296179531} - {fileID: 296179531}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &67180526 --- !u!114 &67180526
MonoBehaviour: MonoBehaviour:
@ -193,13 +193,13 @@ Transform:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 296179530} m_GameObject: {fileID: 296179530}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 67180525} m_Father: {fileID: 67180525}
m_RootOrder: -2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &296179532 --- !u!114 &296179532
MonoBehaviour: MonoBehaviour:
@ -237,13 +237,13 @@ Transform:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1371077985} m_GameObject: {fileID: 1371077985}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 67180525} m_Father: {fileID: 67180525}
m_RootOrder: -2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1371077987 --- !u!114 &1371077987
MonoBehaviour: MonoBehaviour:
@ -354,13 +354,13 @@ Transform:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1460349557} m_GameObject: {fileID: 1460349557}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 8.688524, y: -5, z: 0} m_LocalPosition: {x: 6.8842363, y: -5, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1994723394 --- !u!1 &1994723394
GameObject: GameObject:
@ -406,18 +406,11 @@ Transform:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1994723394} m_GameObject: {fileID: 1994723394}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1660057539 &9223372036854775807
SceneRoots:
m_ObjectHideFlags: 0
m_Roots:
- {fileID: 1460349560}
- {fileID: 67180525}
- {fileID: 1994723396}

View File

@ -2,13 +2,16 @@ namespace HotMain
{ {
public class HotMainEvent public class HotMainEvent
{ {
/// <summary> /// <summary>
/// 开始下载资源 /// 开始下载资源
/// </summary> /// </summary>
public static string StartDownloader = "HotMainEvent_StartDownloader"; public static string StartDownloader = "HotMainEvent_StartDownloader";
/// <summary> /// <summary>
/// 下载资源中进度更新 totalCount, currentCount, totalBytes, currentBytes /// 下载资源中进度更新 totalCount, currentCount, totalBytes, currentBytes
/// </summary> /// </summary>
public static string DownloaderProgressUpdate = "HotMainEvent_DownloaderProgressUpdate"; public static string DownloaderProgressUpdate = "HotMainEvent_DownloaderProgressUpdate";
} }
} }

View File

@ -12,8 +12,11 @@ namespace HotMain.SHGame.Procedure
/// </summary> /// </summary>
public class ProcedureInitializePackage : ProcedureBase public class ProcedureInitializePackage : ProcedureBase
{ {
#if UNITY_EDITOR
public static EPlayMode PlayMode = EPlayMode.EditorSimulateMode;
#else
public static EPlayMode PlayMode = EPlayMode.HostPlayMode; public static EPlayMode PlayMode = EPlayMode.HostPlayMode;
#endif
public static string RawFilePackageName = "RawFilePackage"; public static string RawFilePackageName = "RawFilePackage";
public static string DefaultPackageName = "DefaultPackage"; public static string DefaultPackageName = "DefaultPackage";
@ -22,6 +25,8 @@ namespace HotMain.SHGame.Procedure
public static readonly string[] HotDllName = public static readonly string[] HotDllName =
{ {
"HotSamples.dll", "HotSamples.dll",
"GameLauncher.dll",
"GameScripts.dll",
}; };
public static readonly string[] AotMetaAssemblyFiles = public static readonly string[] AotMetaAssemblyFiles =

View File

@ -23,9 +23,9 @@ namespace HotMain.SHGame.Procedure
await LoadHotfixDll(ProcedureInitializePackage.RawFilePackageName, name); await LoadHotfixDll(ProcedureInitializePackage.RawFilePackageName, name);
} }
// 实例化热更新入口 执行游戏初始化配置表初始化、UI模块初始化、获取玩家数据之类的操作 //热更新完成
ResourcePackage package = YooAssets.GetPackage(ProcedureInitializePackage.DefaultPackageName); ResourcePackage package = YooAssets.GetPackage(ProcedureInitializePackage.DefaultPackageName);
var go = await LoadGameObject(package, "HotPrefab"); var go = await LoadGameObject(package, "HotGameMain");
go.name = $"Resource_{package.GetPackageVersion()}_{YooAssets.GetPackage(ProcedureInitializePackage.RawFilePackageName).GetPackageVersion()}"; go.name = $"Resource_{package.GetPackageVersion()}_{YooAssets.GetPackage(ProcedureInitializePackage.RawFilePackageName).GetPackageVersion()}";
Log.Warning($"Prefab name is {go.name}"); Log.Warning($"Prefab name is {go.name}");
} }

View File

@ -1,5 +1,4 @@
using System.IO; using System.IO;
using Cysharp.Threading.Tasks;
using UnityEngine; using UnityEngine;
using YooAsset; using YooAsset;

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 0f45d335a26535941bd3040692e68b2d guid: 759c846af14c360488aae8d44eccac22
folderAsset: yes folderAsset: yes
DefaultImporter: DefaultImporter:
externalObjects: {} externalObjects: {}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 079b6edaea6dbaa44b152d2ca2027a96
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,46 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &4950134704075743259
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2646845557578810839}
- component: {fileID: 3370151640881118991}
m_Layer: 0
m_Name: HotGameMain
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &2646845557578810839
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4950134704075743259}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &3370151640881118991
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4950134704075743259}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 7d6cf1653d954568a1d5ff6438c19c56, type: 3}
m_Name:
m_EditorClassIdentifier:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 053771d6a5f02174db227bd70d962ea5 guid: 88f32cb2fff5e7a47919e3029a7b84bc
PrefabImporter: PrefabImporter:
externalObjects: {} externalObjects: {}
userData: userData:

View File

@ -1,152 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &1097140889740049220
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5162205910739773445}
- component: {fileID: 9141581918561402549}
m_Layer: 0
m_Name: HotPrefab
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &5162205910739773445
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1097140889740049220}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 96621009899838245}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &9141581918561402549
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1097140889740049220}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0bb5513bdb814e24499f3e520ec6cdf0, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &4315455410363331238
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 96621009899838245}
- component: {fileID: 5454149831640709325}
- component: {fileID: 6484354210178095013}
- component: {fileID: 3227209449509042593}
m_Layer: 0
m_Name: Cube
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &96621009899838245
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4315455410363331238}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 5162205910739773445}
m_RootOrder: -1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &5454149831640709325
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4315455410363331238}
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
--- !u!23 &6484354210178095013
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4315455410363331238}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!65 &3227209449509042593
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4315455410363331238}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Size: {x: 1, y: 1, z: 1}
m_Center: {x: 0, y: 0, z: 0}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 6434f09d246b88b439c5e229112df952 guid: b19ee93c60f6bb94c90a6548ac69d6f0
folderAsset: yes folderAsset: yes
DefaultImporter: DefaultImporter:
externalObjects: {} externalObjects: {}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: d51534464e7d0684697d37b78f571c58 guid: 1a462b1a49cce884cb2fc41691361b55
folderAsset: yes folderAsset: yes
DefaultImporter: DefaultImporter:
externalObjects: {} externalObjects: {}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 480f50c7a5bacea428dbb3ecf70c68af
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1 @@
Á­±攻击AttackÁ­²防御DefendÁ­³è¡€é‡<C3A9>Blood

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 7795db4b43311ab4882db84d4b850318
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,2 @@
Α­±
Α­²Α­³

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 98fd92cf6f5e96248a535ef4a73d64e4
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 9cff23aad169dba4a9ff839a159134ae
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1 @@
q[10004,10001,10002]=譁ー謇句シ募ッシ騾画叫螳<E58FAB>迚ゥ[螯呵尸遘榊ュ<E6A68A>,蟆冗浹螟エ,逍ッ迢ら浹螟エ]

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: f3c85a3bb3e5a40439891fe6e52dcd39
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 0f84db78039ed604eb96d7f8524c818d
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1 @@
Á8<C381>100!预先生æˆ<C3A6>的野å¤å® ç‰©æ•°é‡<C3A9>

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 1eb15cfb0c0425147926af0c9e6d51ca
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,14 @@
a 
    !"#$%&'()*+,-./01  2  3  4  5  6  7

8

9

:

;

<

=  >  ?  @  A  B  C  D  E  F  G  H  I  J  K  L  M  N  OPQRSTUVWXYZ[\]^_`a

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 8ca34b19eadc1d048b4b4f59c16741c6
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1 @@
ÁÔÁ 天空城#ui/map/天空城_å¾ç‰‡/spriteFrameÀêa§§§TbGOnHookMap1200014æ°æ‰åœ°å¾åœ¨è¿™é‡Œå<C592>¯ä»¥é<C2A5>‡åˆ°å<C2B0>¯çˆ±çš„宠物哦~ÁÔ 魔法镇#ui/map/魔法镇_å¾ç‰‡/spriteFrameÀêb§§§§TbGOnHookMap120001 魔法阵 这里有魔法精ç<C2BE>µ~

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 4cb7d4aa6f901b247bad7f7b815db6fa
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 71c98c294d26f504b8ff1fcceaffa14d
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: b5e64023bd4eb3243baa02c871994e66
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 5430aa2410ac4c540aff23ac090792c7
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 90b2274786eada84e90bb7d2c829bb64
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 474029539d0748448bdd6df0251bdc77
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 86d20cb086fb98c48a582d87164af2fb
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 2400e89c298613c4c80ff4de939120f8
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,3 @@
武器帽子项链护肩衣服腰带手套戒指 裤子
鞋子

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 25382e32b37220740a014b018d1ae120
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1 @@
<03><>A 疯狂松鼠GSkillCrazySquirrel5300300;疯狂松鼠的技能 丢出巨大炸弹 轰炸全部玩家<E78EA9><E5AEB6>B妙蛙种子连击GSkillBulbasaurDoubleHit82妙蛙种子攻击8次 触发一次射叶子技能<E68A80><E883BD>C 疯狂杀戮GSkillCDNormal5.白切鸡技能 失去理智疯狂攻击对手

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: dc7248695d988b64cb959c2196bfb7d0
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: a8e5317ec7c0fbb40a8cc9b0c0111495
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 68d663748142d95429d6669da52b66d8
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 485ecec8f77b04e429d5ad2619b35744
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 7f3ef5569679d124a80d227b55812815
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,3 @@
dΒ<>Α­±2Α­³ƒθΑ_<5F> Β<>Α­±2Α­³ƒθΑ_<5F> Β<>Α­±2Α­³ƒθΑ_<5F> Β<>Α­±2Α­³ƒθΑ_<5F> Β<>Α­±2Α­³ƒθΑ_<5F> Β<>Α­±2Α­³ƒθΑ_<5F> Β<>Α­±2Α­³ƒθΑ_<5F> Β<>Α­±2Α­³ƒθΑ_<5F>  Β<>Α­±2Α­³ƒθΑ_<5F> 
Β<EFBFBD>Α­±2Α­³ƒθΑ_<5F>  Β<>Α­±2Α­³ƒθΑ_<5F>  Β<>Α­±2Α­³ƒθΑ_<5F>  Β<>Α­±2Α­³ƒθΑ_<5F> Β<>Α­±2Α­³ƒθΑ_<5F> Β<>Α­±2Α­³ƒθΑ_<5F> Β<>Α­±2Α­³ƒθΑ_<5F> Β<>Α­±2Α­³ƒθΑ_<5F> Β<>Α­±2Α­³ƒθΑ_<5F> Β<>Α­±2Α­³ƒθΑ_<5F> Β<>Α­±2Α­³ƒθΑ_<5F> Β<>Α­±2Α­³ƒθΑ_<5F> Β<>Α­±2Α­³ƒθΑ_<5F> Β<>Α­±2Α­³ƒθΑ_<5F> Β<>Α­±2Α­³ƒθΑ_<5F> Β<>Α­±2Α­³ƒθΑ_<5F> Β<>Α­±2Α­³ƒθΑ_<5F> Β<>Α­±2Α­³ƒθΑ_<5F> Β<>Α­±2Α­³ƒθΑ_<5F> Β<>Α­±2Α­³ƒθΑ_<5F> Β<>Α­±2Α­³ƒθΑ_<5F> Β<>Α­±2Α­³ƒθΑ_<5F>  Β<>Α­±2Α­³ƒθΑ_<5F> !!Β<>Α­±2Α­³ƒθΑ_<5F> ""Β<>Α­±2Α­³ƒθΑ_<5F> ##Β<>Α­±2Α­³ƒθΑ_<5F> $$Β<>Α­±2Α­³ƒθΑ_<5F> %%Β<>Α­±2Α­³ƒθΑ_<5F> &&Β<>Α­±2Α­³ƒθΑ_<5F> ''Β<>Α­±2Α­³ƒθΑ_<5F> ((Β<>Α­±2Α­³ƒθΑ_<5F> ))Β<>Α­±2Α­³ƒθΑ_<5F> **Β<>Α­±2Α­³ƒθΑ_<5F> ++Β<>Α­±2Α­³ƒθΑ_<5F> ,,Β<>Α­±2Α­³ƒθΑ_<5F> --Β<>Α­±2Α­³ƒθΑ_<5F> ..Β<>Α­±2Α­³ƒθΑ_<5F> //Β<>Α­±2Α­³ƒθΑ_<5F> 00Β<30>Α­±2Α­³ƒθΑ_<5F> 11Β<31>Α­±2Α­³ƒθΑ_<5F> 22Β<32>Α­±2Α­³ƒθΑ_<5F> 33Β<33>Α­±2Α­³ƒθΑ_<5F> 44Β<34>Α­±2Α­³ƒθΑ_<5F> 55Β<35>Α­±2Α­³ƒθΑ_<5F> 66Β<36>Α­±2Α­³ƒθΑ_<5F> 77Β<37>Α­±2Α­³ƒθΑ_<5F> 88Β<38>Α­±2Α­³ƒθΑ_<5F> 99Β<39>Α­±2Α­³ƒθΑ_<5F> ::Β<>Α­±2Α­³ƒθΑ_<5F> ;;Β<>Α­±2Α­³ƒθΑ_<5F> <<Β<>Α­±2Α­³ƒθΑ_<5F> ==Β<>Α­±2Α­³ƒθΑ_<5F> >>Β<>Α­±2Α­³ƒθΑ_<5F> ??Β<>Α­±2Α­³ƒθΑ_<5F> @@Β<>Α­±2Α­³ƒθΑ_<5F> AAΒ<41>Α­±2Α­³ƒθΑ_<5F> BBΒ<42>Α­±2Α­³ƒθΑ_<5F> CCΒ<43>Α­±2Α­³ƒθΑ_<5F> DDΒ<44>Α­±2Α­³ƒθΑ_<5F> EEΒ<45>Α­±2Α­³ƒθΑ_<5F> FFΒ<46>Α­±2Α­³ƒθΑ_<5F> GGΒ<47>Α­±2Α­³ƒθΑ_<5F> HHΒ<48>Α­±2Α­³ƒθΑ_<5F> IIΒ<49>Α­±2Α­³ƒθΑ_<5F> JJΒ<4A>Α­±2Α­³ƒθΑ_<5F> KKΒ<4B>Α­±2Α­³ƒθΑ_<5F> LLΒ<4C>Α­±2Α­³ƒθΑ_<5F> MMΒ<4D>Α­±2Α­³ƒθΑ_<5F> NNΒ<4E>Α­±2Α­³ƒθΑ_<5F> OOΒ<4F>Α­±2Α­³ƒθΑ_<5F> PPΒ<50>Α­±2Α­³ƒθΑ_<5F> QQΒ<51>Α­±2Α­³ƒθΑ_<5F> RRΒ<52>Α­±2Α­³ƒθΑ_<5F> SSΒ<53>Α­±2Α­³ƒθΑ_<5F> TTΒ<54>Α­±2Α­³ƒθΑ_<5F> UUΒ<55>Α­±2Α­³ƒθΑ_<5F> VVΒ<56>Α­±2Α­³ƒθΑ_<5F> WWΒ<57>Α­±2Α­³ƒθΑ_<5F> XXΒ<58>Α­±2Α­³ƒθΑ_<5F> YYΒ<59>Α­±2Α­³ƒθΑ_<5F> ZZΒ<5A>Α­±2Α­³ƒθΑ_<5F> [[Β<>Α­±2Α­³ƒθΑ_<5F> \\Β<>Α­±2Α­³ƒθΑ_<5F> ]]Β<>Α­±2Α­³ƒθΑ_<5F> ^^Β<>Α­±2Α­³ƒθΑ_<5F> __Β<5F>Α­±2Α­³ƒθΑ_<5F> ``Β<>Α­±2Α­³ƒθΑ_<5F> aaΒ<61>Α­±2Α­³ƒθΑ_<5F> bbΒ<62>Α­±2Α­³ƒθΑ_<5F> ccΒ<63>Α­±2Α­³ƒθΑ_<5F> ddΒ<64>Α­±2Α­³ƒθΑ_<5F> 

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 8956ff3b7ae573c4eab5cfb90d49dc52
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,3 @@
dΒ<>Α­±2Α­³ƒθΑ_Β<>Α­±2Α­³ƒθΑ_Β<>Α­±2Α­³ƒθΑ_Β<>Α­±2Α­³ƒθΑ_Β<>Α­±2Α­³ƒθΑ_Β<>Α­±2Α­³ƒθΑ_Β<>Α­±2Α­³ƒθΑ_Β<>Α­±2Α­³ƒθΑ_ Β<>Α­±2Α­³ƒθΑ_
Β<EFBFBD>Α­±2Α­³ƒθΑ_ Β<>Α­±2Α­³ƒθΑ_ Β<>Α­±2Α­³ƒθΑ_ Β<>Α­±2Α­³ƒθΑ_Β<>Α­±2Α­³ƒθΑ_Β<>Α­±2Α­³ƒθΑ_Β<>Α­±2Α­³ƒθΑ_Β<>Α­±2Α­³ƒθΑ_Β<>Α­±2Α­³ƒθΑ_Β<>Α­±2Α­³ƒθΑ_Β<>Α­±2Α­³ƒθΑ_Β<>Α­±2Α­³ƒθΑ_Β<>Α­±2Α­³ƒθΑ_Β<>Α­±2Α­³ƒθΑ_Β<>Α­±2Α­³ƒθΑ_Β<>Α­±2Α­³ƒθΑ_Β<>Α­±2Α­³ƒθΑ_Β<>Α­±2Α­³ƒθΑ_Β<>Α­±2Α­³ƒθΑ_Β<>Α­±2Α­³ƒθΑ_Β<>Α­±2Α­³ƒθΑ_Β<>Α­±2Α­³ƒθΑ_ Β<>Α­±2Α­³ƒθΑ_!!Β<>Α­±2Α­³ƒθΑ_""Β<>Α­±2Α­³ƒθΑ_##Β<>Α­±2Α­³ƒθΑ_$$Β<>Α­±2Α­³ƒθΑ_%%Β<>Α­±2Α­³ƒθΑ_&&Β<>Α­±2Α­³ƒθΑ_''Β<>Α­±2Α­³ƒθΑ_((Β<>Α­±2Α­³ƒθΑ_))Β<>Α­±2Α­³ƒθΑ_**Β<>Α­±2Α­³ƒθΑ_++Β<>Α­±2Α­³ƒθΑ_,,Β<>Α­±2Α­³ƒθΑ_--Β<>Α­±2Α­³ƒθΑ_..Β<>Α­±2Α­³ƒθΑ_//Β<>Α­±2Α­³ƒθΑ_00Β<30>Α­±2Α­³ƒθΑ_11Β<31>Α­±2Α­³ƒθΑ_22Β<32>Α­±2Α­³ƒθΑ_33Β<33>Α­±2Α­³ƒθΑ_44Β<34>Α­±2Α­³ƒθΑ_55Β<35>Α­±2Α­³ƒθΑ_66Β<36>Α­±2Α­³ƒθΑ_77Β<37>Α­±2Α­³ƒθΑ_88Β<38>Α­±2Α­³ƒθΑ_99Β<39>Α­±2Α­³ƒθΑ_::Β<>Α­±2Α­³ƒθΑ_;;Β<>Α­±2Α­³ƒθΑ_<<Β<>Α­±2Α­³ƒθΑ_==Β<>Α­±2Α­³ƒθΑ_>>Β<>Α­±2Α­³ƒθΑ_??Β<>Α­±2Α­³ƒθΑ_@@Β<>Α­±2Α­³ƒθΑ_AAΒ<41>Α­±2Α­³ƒθΑ_BBΒ<42>Α­±2Α­³ƒθΑ_CCΒ<43>Α­±2Α­³ƒθΑ_DDΒ<44>Α­±2Α­³ƒθΑ_EEΒ<45>Α­±2Α­³ƒθΑ_FFΒ<46>Α­±2Α­³ƒθΑ_GGΒ<47>Α­±2Α­³ƒθΑ_HHΒ<48>Α­±2Α­³ƒθΑ_IIΒ<49>Α­±2Α­³ƒθΑ_JJΒ<4A>Α­±2Α­³ƒθΑ_KKΒ<4B>Α­±2Α­³ƒθΑ_LLΒ<4C>Α­±2Α­³ƒθΑ_MMΒ<4D>Α­±2Α­³ƒθΑ_NNΒ<4E>Α­±2Α­³ƒθΑ_OOΒ<4F>Α­±2Α­³ƒθΑ_PPΒ<50>Α­±2Α­³ƒθΑ_QQΒ<51>Α­±2Α­³ƒθΑ_RRΒ<52>Α­±2Α­³ƒθΑ_SSΒ<53>Α­±2Α­³ƒθΑ_TTΒ<54>Α­±2Α­³ƒθΑ_UUΒ<55>Α­±2Α­³ƒθΑ_VVΒ<56>Α­±2Α­³ƒθΑ_WWΒ<57>Α­±2Α­³ƒθΑ_XXΒ<58>Α­±2Α­³ƒθΑ_YYΒ<59>Α­±2Α­³ƒθΑ_ZZΒ<5A>Α­±2Α­³ƒθΑ_[[Β<>Α­±2Α­³ƒθΑ_\\Β<>Α­±2Α­³ƒθΑ_]]Β<>Α­±2Α­³ƒθΑ_^^Β<>Α­±2Α­³ƒθΑ___Β<5F>Α­±2Α­³ƒθΑ_``Β<>Α­±2Α­³ƒθΑ_aaΒ<61>Α­±2Α­³ƒθΑ_bbΒ<62>Α­±2Α­³ƒθΑ_ccΒ<63>Α­±2Α­³ƒθΑ_ddΒ<64>Α­±2Α­³ƒθΑ_

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: a25fc3e3da22e0e4aa5b0ecfe26f970f
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1 @@
Á†¡[100000]'æœ<C3A6>务器账å<C2A6>· (用æ<C2A8>¥å¸§å<C2A7>Œæ­¥è£<C3A8>决)

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 79568b2ab0201e541a2af7d07a6187b0
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 08f3b53776430894fa9cf41a58fcf70c guid: daf23295ecba47f4aaea7c1eb5d2ac11
folderAsset: yes folderAsset: yes
DefaultImporter: DefaultImporter:
externalObjects: {} externalObjects: {}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 5ad8b594dcec3544bb060084303c6e20
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,15 @@
/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
using FairyGUI;
namespace Launcher
{
public class LauncherBinder
{
public static void BindAll()
{
UIObjectFactory.SetPackageItemExtension(UI_Button.URL, typeof(UI_Button));
UIObjectFactory.SetPackageItemExtension(UI_Launcher.URL, typeof(UI_Launcher));
}
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: d082f02b9c184cb4e880a9a47b088792
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,25 @@
/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
using FairyGUI;
using FairyGUI.Utils;
namespace Launcher
{
public partial class UI_Button : GButton
{
public Controller m_Type;
public const string URL = "ui://h88wuvsbed8im2";
public static UI_Button CreateInstance()
{
return (UI_Button)UIPackage.CreateObject("Launcher", "Button");
}
public override void ConstructFromXML(XML xml)
{
base.ConstructFromXML(xml);
m_Type = GetControllerAt(1);
}
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 640b003b63f42c2489ddda56671df3d5
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,31 @@
/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
using FairyGUI;
using FairyGUI.Utils;
namespace Launcher
{
public partial class UI_Launcher : GComponent
{
public Controller m_Type;
public GProgressBar m_progress;
public GTextField m_title;
public UI_Button m_downloader;
public const string URL = "ui://h88wuvsbkpkc0";
public static UI_Launcher CreateInstance()
{
return (UI_Launcher)UIPackage.CreateObject("Launcher", "Launcher");
}
public override void ConstructFromXML(XML xml)
{
base.ConstructFromXML(xml);
m_Type = GetControllerAt(0);
m_progress = (GProgressBar)GetChildAt(1);
m_title = (GTextField)GetChildAt(2);
m_downloader = (UI_Button)GetChildAt(3);
}
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 45c6da4efa15f2c47a3b57b10d47d6ba
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: cccf8f03bd08441fbe4c9f253a62a4a2
timeCreated: 1729067678

View File

@ -5,7 +5,7 @@ using Launcher;
using SHFrame; using SHFrame;
using YooAsset; using YooAsset;
namespace HotScripts.GameLauncher.FGui.Scripts namespace HotScripts.GameLauncher.FGui.Scripts.Launcher
{ {
public class LauncherUI : UIBase public class LauncherUI : UIBase
{ {
@ -29,10 +29,12 @@ namespace HotScripts.GameLauncher.FGui.Scripts
if (totalDownloadBytes <= 0) if (totalDownloadBytes <= 0)
{ {
UIView.m_title.text = "资源已经最新"; UIView.m_title.text = "资源已经最新";
EventUtil.DispatchEvent(HotMainEvent.StartDownloader);
} }
else else
{ {
UIView.m_title.text = $"需更新 {totalDownloadBytes} 字节资源"; UIView.m_title.text = $"需更新 {totalDownloadBytes} 字节资源";
UIView.m_Type.selectedIndex = 1;
} }
} }
@ -44,22 +46,42 @@ namespace HotScripts.GameLauncher.FGui.Scripts
UIView.m_downloader.onClick.Add(OnDownloader); UIView.m_downloader.onClick.Add(OnDownloader);
EventUtil.AddListener(HotMainEvent.DownloaderProgressUpdate,OnDownloaderProgressUpdate); EventUtil.AddListener(HotMainEvent.DownloaderProgressUpdate,OnDownloaderProgressUpdate);
EventUtil.AddListener(HotLauncherEvent.InitSuccess,OnInitSuccess);
} }
public override void RemoveListener() public override void RemoveListener()
{ {
UIView.m_downloader.onClick.Add(OnDownloader); UIView.m_downloader.onClick.Add(OnDownloader);
EventUtil.RemoveListener(HotMainEvent.DownloaderProgressUpdate,OnDownloaderProgressUpdate); EventUtil.RemoveListener(HotMainEvent.DownloaderProgressUpdate,OnDownloaderProgressUpdate);
EventUtil.RemoveListener(HotLauncherEvent.InitSuccess,OnInitSuccess);
} }
private void OnDownloader(EventContext context) private void OnDownloader(EventContext context)
{ {
EventUtil.DispatchEvent(HotMainEvent.StartDownloader); if (UIView.m_Type.selectedIndex != 2)
{
EventUtil.DispatchEvent(HotMainEvent.StartDownloader);
}
else
{
EventUtil.DispatchEvent(HotLauncherEvent.GoGameMain);
SHFrameModule.UI.Close("Launcher", "Launcher");
}
} }
/// <summary>
/// 初始化完成 进入游戏
/// </summary>
/// <param name="eventargs"></param>
private void OnInitSuccess(EventArgs eventargs)
{
UIView.m_Type.selectedIndex = 2;
}
/// <summary> /// <summary>
/// 资源更新进度 /// 资源更新进度

View File

@ -0,0 +1,22 @@
namespace HotScripts.GameLauncher
{
public class HotLauncherEvent
{
/// <summary>
/// 初始化系统 [提示词]
/// </summary>
public static string InitSystem = "HotLauncherEvent_InitSystem";
/// <summary>
/// 初始化系统成功
/// </summary>
public static string InitSuccess = "HotLauncherEvent_InitSuccess";
/// <summary>
/// 进入游戏
/// </summary>
public static string GoGameMain = "HotLauncherEvent_GoGameMain";
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: c47cfe00dddd413bafd1d39ddd911be5
timeCreated: 1729068147

View File

@ -1,5 +1,6 @@
using Cysharp.Threading.Tasks; using Cysharp.Threading.Tasks;
using HotScripts.GameLauncher.FGui.Scripts; using HotScripts.GameLauncher.FGui.Scripts;
using HotScripts.GameLauncher.FGui.Scripts.Launcher;
using Launcher; using Launcher;
using SHFrame; using SHFrame;
using UnityEngine; using UnityEngine;
@ -15,6 +16,6 @@ public class HotLauncherMain : MonoBehaviour
private async UniTask RunLauncher() private async UniTask RunLauncher()
{ {
LauncherBinder.BindAll(); LauncherBinder.BindAll();
await SHFrameModule.UI.Open<LauncherUI>("Launcher", "Launcher", UILayerEnum.Root); await SHFrameModule.UI.Open<LauncherUI>("Launcher", "Launcher");
} }
} }

View File

@ -0,0 +1,33 @@
using HotScripts.GameScripts.FGui;
using HotScripts.GameScripts.Luban;
using Plugins.JNGame.System;
using SHFrame;
using EventDispatcher = Plugins.JNGame.Util.EventDispatcher;
namespace HotScripts.GameScripts
{
public class App
{
//Launcher 事件
public static SHFrame.EventDispatcher EventLauncher => EventUtil.Dispatcher;
//App 事件
public static EventDispatcher Event = new EventDispatcher();
//Luban 配置
public static LubanManager Luban = new LubanManager();
//UI
public static FGuiManager UI = new FGuiManager();
public static SystemBase[] AllSystem()
{
return new SystemBase[]
{
Luban,
UI,
};
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: aedb4fd39b0f485c969f89c15ee8ed8e
timeCreated: 1729066668

View File

@ -0,0 +1,95 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Common;
using Cysharp.Threading.Tasks;
using FairyGUI;
using HotScripts.GameLauncher;
using MainUI;
using Plugins.JNGame.System;
using SHFrame;
namespace HotScripts.GameScripts.FGui
{
public enum UILayerEnum
{
View,
}
public enum UIID
{
Component1
}
/**
* UI
*/
public struct UIConfigStruct
{
public readonly string PkgName;
public readonly string ResName;
public readonly UILayerEnum Layer;
public UIConfigStruct(string pkgName, string resName, UILayerEnum layer)
{
PkgName = pkgName;
ResName = resName;
Layer = layer;
}
}
public class FGuiManager : SystemBase
{
private UI_MainUI _mainUI;
public static Dictionary<UIID, UIConfigStruct> UIConfigMap = new();
public static Dictionary<UILayerEnum, GComponent> LayerMap = new();
public override async Task OnInit()
{
await UniTask.DelayFrame(1);
Log.Debug($"UI 初始化中");
App.EventLauncher.DispatchEvent(HotLauncherEvent.InitSystem,$"UI 初始化中");
BindAll();
BindUI();
await SHFrameModule.UI.AddPackageASync("MainUI");
_mainUI = UI_MainUI.CreateInstance();
_mainUI.MakeFullScreen();
GRoot.inst.AddChildAt(_mainUI,0);
_mainUI.Center();
LayerMap.Add(UILayerEnum.View,_mainUI.m_View);
}
/// <summary>
/// 绑定UI包
/// </summary>
private void BindAll()
{
MainUIBinder.BindAll();
CommonBinder.BindAll();
}
/// <summary>
/// 绑定UI配置
/// </summary>
private void BindUI()
{
UIConfigMap.Add(UIID.Component1,new UIConfigStruct("Common", "Component1", UILayerEnum.View));
}
public async UniTask Open<TClassType>(UIID id, params object[] param)
where TClassType : UIBase, new()
{
if (!UIConfigMap.ContainsKey(id)) return;
var config = UIConfigMap[id];
await SHFrameModule.UI.Open<TClassType>(config.PkgName, config.ResName, LayerMap[config.Layer], param);
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: ffd157506c074a2f8ff4779145edd5c7
timeCreated: 1729070320

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 53684cc614eb0d94093256725a1ff85c
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ec925952c92c52d46a374f4996e7fcf9
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,14 @@
/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
using FairyGUI;
namespace Common
{
public class CommonBinder
{
public static void BindAll()
{
UIObjectFactory.SetPackageItemExtension(UI_Component1.URL, typeof(UI_Component1));
}
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 5b2179ed09e9d7f4a9dd5e03d08b08da
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,25 @@
/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
using FairyGUI;
using FairyGUI.Utils;
namespace Common
{
public partial class UI_Component1 : GComponent
{
public GTextField m_text;
public const string URL = "ui://k5vyqumwed8i0";
public static UI_Component1 CreateInstance()
{
return (UI_Component1)UIPackage.CreateObject("Common", "Component1");
}
public override void ConstructFromXML(XML xml)
{
base.ConstructFromXML(xml);
m_text = (GTextField)GetChildAt(1);
}
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 2944078da6fa13c44aa673e785abacc3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

Some files were not shown because too many files have changed in this diff Show More