同步
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user