This commit is contained in:
SoulliesOfficial
2026-03-31 07:51:40 -04:00
parent e7d717aad5
commit 25b6da25ae
2054 changed files with 6065 additions and 32945 deletions

View File

@@ -9,8 +9,7 @@ namespace Ichni.RhythmGame
public class CameraTiltEffect : EffectBase
{
#region [] Effect Parameters
public float duration;
public Vector3 tiltValue;
public Vector3 tiltValue;
public AnimationCurve tiltCurve;
GameCamera gameCamera=> GameManager.Instance.cameraManager.gameCamera;
@@ -19,10 +18,9 @@ namespace Ichni.RhythmGame
#endregion
#region [] Initialization
public CameraTiltEffect(float duration, Vector3 tiltValue, AnimationCurve tiltCurve)
public CameraTiltEffect(float effectTime, Vector3 tiltValue, AnimationCurve tiltCurve)
{
this.effectTime = duration;
this.duration = duration;
this.effectTime = effectTime;
this.tiltValue = tiltValue;
this.tiltCurve = tiltCurve;
}
@@ -38,7 +36,7 @@ namespace Ichni.RhythmGame
public override void PreExecute()
{
tiltTweener = gameCamera.cam.transform.DOBlendableLocalRotateBy(tiltValue, duration, RotateMode.FastBeyond360).SetEase(tiltCurve).Play();
tiltTweener = gameCamera.cam.transform.DOBlendableLocalRotateBy(tiltValue, effectTime, RotateMode.FastBeyond360).SetEase(tiltCurve).Play();
}
public override void Adjust()
{
@@ -53,4 +51,5 @@ namespace Ichni.RhythmGame
}
}
}