using System.Collections; using System.Collections.Generic; using UnityEngine; public class UIMouseUnblock : MonoBehaviour { private void OnDisable() { if (Player.Instance != null) { Player.Instance.updatePlayer = true; } } private void OnEnable() { if (Player.Instance != null) { Player.Instance.updatePlayer = false; } } }