临时提交

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2024-10-17 01:59:25 +08:00
parent 6da2f9e691
commit c85f350e0a
191 changed files with 17326 additions and 17008 deletions

View File

@@ -1,8 +1,7 @@
using HotScripts.GameScripts.FGui;
using HotScripts.GameScripts.Luban;
using Plugins.JNGame.System;
using SHFrame;
using EventDispatcher = Plugins.JNGame.Util.EventDispatcher;
using JNGame.Runtime.System;
using JNGame.Util;
namespace HotScripts.GameScripts
{
@@ -10,7 +9,7 @@ namespace HotScripts.GameScripts
{
//Launcher 事件
public static SHFrame.EventDispatcher EventLauncher => EventUtil.Dispatcher;
public static SHFrame.EventDispatcher EventLauncher => SHFrame.EventUtil.Dispatcher;
//App 事件
public static EventDispatcher Event = new EventDispatcher();

View File

@@ -3,9 +3,9 @@ using System.Threading.Tasks;
using Common;
using Cysharp.Threading.Tasks;
using FairyGUI;
using HotScripts.GameLauncher;
// using HotScripts.GameLauncher;
using JNGame.Runtime.System;
using MainUI;
using Plugins.JNGame.System;
using SHFrame;
namespace HotScripts.GameScripts.FGui
@@ -50,7 +50,7 @@ namespace HotScripts.GameScripts.FGui
{
await UniTask.DelayFrame(1);
Log.Debug($"UI 初始化中");
App.EventLauncher.DispatchEvent(HotLauncherEvent.InitSystem,$"UI 初始化中");
// App.EventLauncher.DispatchEvent(HotLauncherEvent.InitSystem,$"UI 初始化中");
BindAll();
BindUI();

View File

@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 5170e578d823499481b4ab2083ea1e16
timeCreated: 1729070950

View File

@@ -1,7 +1,8 @@
using System;
using HotScripts.GameLauncher;
// using HotScripts.GameLauncher;
using HotScripts.GameScripts.FGui;
using HotScripts.GameScripts.FGui.Scripts;
using JNGame.Runtime;
using JNGame;
using SHFrame;
using UnityEngine;
@@ -19,8 +20,8 @@ namespace HotScripts.GameScripts
//初始化系统
await JNetGame.Instance.Init(App.AllSystem());
//初始化成功
App.EventLauncher.DispatchEvent(HotLauncherEvent.InitSuccess);
// //初始化成功
// App.EventLauncher.DispatchEvent(HotLauncherEvent.InitSuccess);
}
@@ -32,12 +33,12 @@ namespace HotScripts.GameScripts
private void AddListener()
{
App.EventLauncher.AddListener(HotLauncherEvent.GoGameMain,OnGoGameMain);
// App.EventLauncher.AddListener(HotLauncherEvent.GoGameMain,OnGoGameMain);
}
private void RemoveListener()
{
App.EventLauncher.RemoveListener(HotLauncherEvent.GoGameMain,OnGoGameMain);
// App.EventLauncher.RemoveListener(HotLauncherEvent.GoGameMain,OnGoGameMain);
}
private async void OnGoGameMain(EventArgs eventargs)

View File

@@ -1,9 +1,9 @@
using System.Threading.Tasks;
using Cysharp.Threading.Tasks;
using GameConfig;
using HotScripts.GameLauncher;
// using HotScripts.GameLauncher;
using JNGame.Runtime.System;
using Luban;
using Plugins.JNGame.System;
using SHFrame;
using UnityEngine;
using YooAsset;
@@ -21,7 +21,7 @@ namespace HotScripts.GameScripts.Luban
{
await UniTask.DelayFrame(1);
Log.Debug($"配置文件 初始化中");
App.EventLauncher.DispatchEvent(HotLauncherEvent.InitSystem,$"配置文件 初始化中");
// App.EventLauncher.DispatchEvent(HotLauncherEvent.InitSystem,$"配置文件 初始化中");
_tables = new Tables(LoadByteBuf);
Log.Debug($"配置文件 初始化完成 {Tables.TbGMap.DataList[0].MapName}");
}