using UnityEngine; 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() { Instance = this; } void OnDisable() { if (Instance == this) Instance = null; } public void SetLevitation(float levitation) { _levitation = levitation; } }