mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 08:37:37 +02:00
Rhythm Rally Camera Event
Rotate the camera with different easing functions and the option to add/remove from current rotation.
This commit is contained in:
@ -13,7 +13,7 @@ namespace RhythmHeavenMania.Games.RhythmRally
|
||||
|
||||
[Header("Camera")]
|
||||
public Transform renderQuadTrans;
|
||||
public Transform cameraPos;
|
||||
public Transform cameraPivot;
|
||||
|
||||
|
||||
[Header("Ball and curve info")]
|
||||
@ -341,6 +341,11 @@ namespace RhythmHeavenMania.Games.RhythmRally
|
||||
inPose = true;
|
||||
}
|
||||
|
||||
public void ChangeCameraAngle(Vector3 rotation, float length, Ease ease, RotateMode rotateMode)
|
||||
{
|
||||
cameraPivot.DORotate(rotation, length * Conductor.instance.secPerBeat, rotateMode).SetEase(ease);
|
||||
}
|
||||
|
||||
public void PrepareFastRally(float beat, RallySpeed speedChange)
|
||||
{
|
||||
if (speedChange == RallySpeed.Fast)
|
||||
|
Reference in New Issue
Block a user