我说次元斩
This commit is contained in:
@@ -10,6 +10,7 @@ using SLSUtilities.General;
|
||||
using SLSUtilities.FunctionalAnimation;
|
||||
using SLSUtilities.WwiseAssistance;
|
||||
using UnityEngine;
|
||||
using Random = UnityEngine.Random;
|
||||
|
||||
namespace Cielonos.MainGame.Inventory.Collections
|
||||
{
|
||||
@@ -109,16 +110,21 @@ namespace Cielonos.MainGame.Inventory.Collections
|
||||
|
||||
private NormalArea GenerateUltimateSlash(string vfxName, AttackUnit attackUnit)
|
||||
{
|
||||
NormalArea slash = CreateBaseSlash(vfxName, attackUnit, 1f, 0.04f);
|
||||
NormalArea slash = vfxData.SpawnVFX(vfxName, player).GetComponentInChildren<NormalArea>();
|
||||
|
||||
slash.Initialize<NormalArea>(player, this, Fraction.Enemy)
|
||||
.SetAttackSubmodule<NormalArea>(attackUnit)
|
||||
.SetTimeSubmodule<NormalArea>(2f, 0f, 0.22f)
|
||||
.SetHitSubmodule<NormalArea>(0.07f, 3);
|
||||
|
||||
slash.SetImpulseSubmodule(1f).WithRepulsion(5f);
|
||||
|
||||
slash.hitSm.AddHitSound(AK.EVENTS.POLYCHROME_HEAVYATTACKLHIT)
|
||||
.AddHitEvent((enemy, hitPosition) =>
|
||||
{
|
||||
var positionShakeAction = feedbackSc.GetFeedbackData("HeavyHit").Action<CameraPositionShakeAction>("Camera");
|
||||
positionShakeAction.amplitude = vfxData.Get(vfxName).slashScreenPosition.normalized * 0.18f;
|
||||
feedbackSc.PlayFeedback("HeavyHit");
|
||||
feedbackSc.PlayFeedback("Breakthrough");
|
||||
var positionShakeAction = feedbackSc.GetFeedbackData("UltimateAttackHit").Action<CameraPositionShakeAction>("Camera");
|
||||
positionShakeAction.amplitude = new Vector3(Random.value, Random.value, Random.value).normalized * 0.18f;
|
||||
feedbackSc.PlayFeedback("UltimateAttackHit");
|
||||
});
|
||||
|
||||
return slash;
|
||||
|
||||
Reference in New Issue
Block a user