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