private void OnEnable() { UserInterfacePriorityKeeper.Add(this); FocusDefault(); OnClick?.AddListener(OnMouseClick); OnMove?.AddListener(OnMoveAxis); }
private void OnDisable() { UserInterfacePriorityKeeper.Remove(this); UserInterfacePriorityKeeper.GetLastInstance()?.FocusDefault(); OnClick?.RemoveListener(OnMouseClick); OnMove?.RemoveListener(OnMoveAxis); }