// Use this for initialization void Start() { ARModeBtn.onClick.AddListener(() => ChangeToARMode()); NewsFeedBtn.onClick.AddListener(() => EnableUIPanel(NewsFeedView)); SettingsBtn.onClick.AddListener(() => EnableUIPanel(SettingsView)); NavDrawerBtn.onClick.AddListener(() => OpenNavigationDrawer(true)); NavDrawBG.onClick.AddListener(() => OpenNavigationDrawer(false)); ProfileBtn.onClick.AddListener(() => EnableUIPanel(Profile)); GalleryBtn.onClick.AddListener(() => EnableUIPanel(Gallery)); SignOutBtn.onClick.AddListener(() => ExitApplication()); NavDrawer.SetActive(false); loadingScreenBG.SetActive(false); loadingSlider.gameObject.SetActive(false); loadingText.gameObject.SetActive(false); currentScene = SceneManager.GetActiveScene().name; }
void OpenNavigationDrawer(bool isNavActive) { NavDrawer.SetActive(isNavActive); }