Passion & UI

This commit is contained in:
SoulliesOfficial
2026-06-12 17:11:39 -04:00
parent 7bc1e1722c
commit 6d7ebc5825
3444 changed files with 865284 additions and 463132 deletions

View File

@@ -30,13 +30,25 @@ namespace Cielonos.MainGame.Characters
public partial class L1_Assault_Pawn
{
/// <summary>
/// 近战攻击命中区域的反应 grace window 提前量(秒)。
/// 允许玩家在伤害判定开始前提前格挡/闪避。
/// </summary>
private const float PunchReactionGraceBefore = 0.15f;
/// <summary>
/// 近战攻击命中区域的反应 grace window 延后量(秒)。
/// 允许玩家在伤害判定结束后仍可格挡/闪避。
/// </summary>
private const float PunchReactionGraceAfter = 0.1f;
private NormalArea GeneratePunch(string vfxName, AttackUnit attackUnit)
{
NormalArea punch = vfxData.SpawnVFX(vfxName, this, transform).GetComponentInChildren<NormalArea>();
punch.Initialize<NormalArea>(this, Fraction.Player)
.SetAttackSubmodule<NormalArea>(attackUnit)
.SetTimeSubmodule<NormalArea>(1f)
.SetTimeSubmodule<NormalArea>(1f, 0.1f, 0.04f, null, null, 0.1f)
.SetHitSubmodule<NormalArea>();
punch.SetImpulseSubmodule().WithCustomForce(transform.forward);
punch.hitSm.AddHitSound(AK.EVENTS.POLYCHROME_LIGHTATTACKHIT);

View File

@@ -44,6 +44,11 @@ namespace Cielonos.MainGame.Characters
PlayerCanvas.BossInfoUIArea.RemoveInfoUnit(this);
//MainGameManager.Player.feedbackSc["NexusFinish"].Play();
}
if (MainGameManager.Player.viewSc.lockTargetModule.lockTarget == this)
{
MainGameManager.Player.viewSc.lockTargetModule.UnlockTarget();
}
base.Die();
CombatManager.EnemySm.RemoveEnemy(this);