using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; public class UiProtec : MonoBehaviour { public void protectedUi() { Ui.protec = true; } public void unProtectedUi() { Ui.protec = false; } }