mirror of
http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite.git
synced 2025-11-20 05:57:14 +08:00
(client) feat:实现技能树界面,实现地图生成器,实现维度指定,实现规则瓦片定义,实现逃跑逻辑,实现消息定义,实现武器动画,实现受击动画 fix: 修复单攻击子弹击中多个目标,修复人物属性计算错误 (#56)
Co-authored-by: m0_75251201 <m0_75251201@noreply.gitcode.com> Reviewed-on: http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite/pulls/56
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Base;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Logging
|
||||
@@ -13,7 +14,7 @@ namespace Logging
|
||||
public LogType Type;
|
||||
public string Message;
|
||||
public string StackTrace;
|
||||
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
// 逻辑修改:扩展条件,使LogType.Error和LogType.Assert也能显示堆栈信息
|
||||
@@ -56,7 +57,7 @@ namespace Logging
|
||||
Debug.LogWarning("[LogCapturer] Init() called multiple times. LogCapturer is already initialized.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Application.logMessageReceivedThreaded += HandleLog;
|
||||
_isInitialized = true;
|
||||
}
|
||||
@@ -95,6 +96,10 @@ namespace Logging
|
||||
|
||||
_logs.Enqueue(entry);
|
||||
TrimExcess();
|
||||
if (type is LogType.Error or LogType.Assert or LogType.Exception)
|
||||
{
|
||||
UIInputControl.Instance.Show("LogUI");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
17
Client/Assets/Scripts/Logging/LoggerManagerWrapper.cs
Normal file
17
Client/Assets/Scripts/Logging/LoggerManagerWrapper.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Managers;
|
||||
|
||||
namespace Logging
|
||||
{
|
||||
public class LoggerManagerWrapper : ILaunchManager
|
||||
{
|
||||
public string StepDescription => "初始化日志";
|
||||
public void Init()
|
||||
{
|
||||
Logging.UnityLogger.Instance.Init();
|
||||
// LogCapturer.Init();
|
||||
}
|
||||
public void Clear()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0970589e164e4a698d7040126597dedf
|
||||
timeCreated: 1756908370
|
||||
Reference in New Issue
Block a user