fix: Reduce levitation speed on Theatre
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user