//TODO Refactor this into individual back buttons instead of just having one button public void BackButton() { //Set to null to clear current selected button in Event System EventSystem.current.SetSelectedGameObject(null); if (isVideoPlaying == true) { UnLoadVideoPlayer(); UIContentGroup.VideoPanel.GetComponent <VideoPanel>().UnZoom(); } else if (isVideoPlaying == false && UICardsViewerGroup.CardFace.gameObject.activeSelf) { UICardsViewerGroup.CardFace.gameObject.SetActive(false); } else if (isVideoPlaying == false && UICardsViewerGroup.ScrollRect.gameObject.activeSelf) { CloseHorizontalCardScroller(); } else if (isVideoPlaying == false) { PersistentSceneManager.ReplaceActiveScene("Topic UI"); } }
public virtual void Initialize() { PersistentSceneManager = PersistentSceneManager.instance; button = GetComponent <Button>(); Canvas = GetComponentInParent <Canvas>(); }
private void Awake() { instance = this; currentMainScene = null; }
private void Awake() { instance = this; }
public virtual void Initialize() { Debug.Assert(Canvas != null, "No Canvas Detected!"); PersistentSceneManager = PersistentSceneManager.instance; }