Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [SerializeField] private GameObject _menuToDisable;
- [SerializeField] private GameObject _menuToEnable;
- public void OnPointerClick(PointerEventData eventData)
- {
- if (_menuToDisable) _menuToDisable.SetActive(false);
- if(_menuToEnable) _menuToEnable.SetActive(true);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement