Bezi回来了
This commit is contained in:
@@ -159,7 +159,12 @@ namespace Cielonos.MainGame.Characters.Inventory
|
||||
comboSm?[comboTreeName].SuspendThenSetup(actionCoolDownTime);
|
||||
if (target != null)
|
||||
{
|
||||
if (autoRotate) player.landMovementSc.TurnToTarget(target);
|
||||
if (autoRotate)
|
||||
{
|
||||
float angleLimit = player.viewSc.lockTargetModule.isLocking ? 240 : 150;
|
||||
player.landMovementSc.SmartTurnToTarget(target, angleLimit);
|
||||
}
|
||||
|
||||
if (keepAdsorption)
|
||||
{
|
||||
funcAnimSm.currentRuntimeFuncAnim.AddUpdateEvent(new SetRootAdsorptionAdjustment.Keep(target, adsorptionMinDistance));
|
||||
@@ -185,13 +190,15 @@ namespace Cielonos.MainGame.Characters.Inventory
|
||||
Debug.LogWarning($"没有找到名为 'Camera' 的轨道,请检查 FeedbackData '{feedBackName}' 的设置。");
|
||||
return;
|
||||
}
|
||||
|
||||
if (cameraTrack.clips.Find(clip => clip.action is CameraPositionShakeAction)?.action is CameraPositionShakeAction positionShakeAction)
|
||||
|
||||
var positionShakeAction = feedBackData.Action<CameraPositionShakeAction>("Camera");
|
||||
if (positionShakeAction != null)
|
||||
{
|
||||
positionShakeAction.amplitude = swingPosition;
|
||||
}
|
||||
|
||||
if (cameraTrack.clips.Find(clip => clip.action is CameraRotationShakeAction)?.action is CameraRotationShakeAction rotationShakeAction)
|
||||
|
||||
var rotationShakeAction = feedBackData.Action<CameraRotationShakeAction>("Camera");
|
||||
if (rotationShakeAction != null)
|
||||
{
|
||||
rotationShakeAction.amplitude = swingRotation;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user