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

@@ -7,8 +7,7 @@ namespace Ichni.RhythmGame
public class CameraOffsetEffect : EffectBase
{
#region [] Effect Parameters
public float duration;
public Vector3 offsetValue;
public Vector3 offsetValue;
public AnimationCurve offsetCurve;
Transform gameCameraTransform => GameManager.Instance.cameraManager.gameCamera.cam.transform;
@@ -16,10 +15,10 @@ namespace Ichni.RhythmGame
#endregion
#region [] Initialization
public CameraOffsetEffect(float duration, Vector3 offsetValue, AnimationCurve offsetCurve)
public CameraOffsetEffect(float effectTime, Vector3 offsetValue, AnimationCurve offsetCurve)
{
this.effectTime = this.duration;
this.duration = duration;
this.effectTime = this.effectTime;
this.effectTime = effectTime;
this.offsetValue = offsetValue;
this.offsetCurve = offsetCurve;
}
@@ -34,7 +33,7 @@ namespace Ichni.RhythmGame
public override void PreExecute()
{
offsetTweener = gameCameraTransform.DOBlendableLocalMoveBy(offsetValue, duration).SetEase(offsetCurve).Play();
offsetTweener = gameCameraTransform.DOBlendableLocalMoveBy(offsetValue, effectTime).SetEase(offsetCurve).Play();
}
public override void Adjust()
@@ -51,4 +50,5 @@ namespace Ichni.RhythmGame
}
}
}