using UnityEngine; public class LevitationManager : MonoBehaviour { public static LevitationManager Instance { get; private set; } [Range(0, 1)] public float Levitation; void OnEnable() { Instance = this; } void OnDisable() { if (Instance == this) Instance = null; } }