using System.Collections; using System.Collections.Generic; using UnityEngine; public class UIHideshow : MonoBehaviour { void Start() { GetComponent().alpha = 0; } public void EnterUIShow() { GetComponent().alpha = 1; GameObject.Find("Main Camera").GetComponent().canScroll = false; } public void ExitUIHide() { GetComponent().alpha = 0; GameObject.Find("Main Camera").GetComponent().canScroll = true; } }