新Feedback系统
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user