fix: Reduce levitation speed on Theatre

This commit is contained in:
Alexandre Coirier
2026-06-05 14:43:54 +02:00
parent a8f7264475
commit 2199870593
3 changed files with 4 additions and 1 deletions
+1
View File
@@ -23310,6 +23310,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::LevitationManager
_levitation: 0
_speed: 0.25
--- !u!4 &1387960518
Transform:
m_ObjectHideFlags: 0
@@ -5,8 +5,10 @@ public class LevitationManager : MonoBehaviour
public static LevitationManager Instance { get; private set; }
[SerializeField, Range(0, 1)] private float _levitation;
[SerializeField] private float _speed = 1;
public float Levitation => _levitation;
public float Spped => _speed;
void OnEnable()
{
@@ -68,7 +68,7 @@ public class LevitationObject : MonoBehaviour
_references.Rigidbody.isKinematic = true;
_references.Rigidbody.useGravity = false;
float t = Time.timeSinceLevelLoad;
float t = Time.timeSinceLevelLoad * LevitationManager.Instance.Spped;
t += _settings.Seed * 7.63f;
float cosT0 = Mathf.Cos(t * .3f);