static void Remove(ControlsEnabler script) { if (visibleDisablers.Contains(script) == true) { visibleDisablers.Remove(script); } if ((visibleDisablers.Count <= 0) && (MoveCursor.Instance)) { MoveCursor.Instance.IsControlEnabled = true; } }
static void Add(ControlsEnabler script) { if (visibleDisablers.Contains(script) == false) { visibleDisablers.Add(script); } if (MoveCursor.Instance) { MoveCursor.Instance.IsControlEnabled = false; } }