新Feedback系统

This commit is contained in:
SoulliesOfficial
2026-04-12 02:11:15 -04:00
parent f26f9fd374
commit 41140a2017
171 changed files with 296190 additions and 219527 deletions

View File

@@ -195,6 +195,11 @@ namespace Cielonos.MainGame.Characters
_ => 0
};
if (string.IsNullOrEmpty(funcAnimName))
{
funcAnimName = GetHitFuncAnimName(breakthroughType, direction);
}
if (CheckBreakthrough(breakthroughType))
{
if (!animationSc.fullBodyFuncAnimSm.Stop(disruptionType))
@@ -225,6 +230,7 @@ namespace Cielonos.MainGame.Characters
protected virtual string GetHitFuncAnimName(BreakthroughType breakthroughType, Vector3 direction)
{
string prefix = "GetHitMedium";
if (breakthroughType >= BreakthroughType.Medium)
{
prefix = breakthroughType switch
@@ -236,7 +242,7 @@ namespace Cielonos.MainGame.Characters
_ => "GetHit"
};
}
string directionStr = "Front";
if (direction != default)
{
@@ -256,6 +262,16 @@ namespace Cielonos.MainGame.Characters
}
string fullName = prefix + directionStr;
if (!animationSc.fullBodyFuncAnimSm.collection.ContainsKey(fullName))
{
if (prefix == "GetHitForced")
{
prefix = "GetHitHeavy"; //如果没有专门的“强制等级”受击动画,就使用“重度等级”的动画
fullName = prefix + directionStr;
}
}
return fullName;
}
}