예제 #1
0
    //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");
        }
    }
예제 #2
0
 public virtual void Initialize()
 {
     PersistentSceneManager = PersistentSceneManager.instance;
     button = GetComponent <Button>();
     Canvas = GetComponentInParent <Canvas>();
 }
예제 #3
0
 private void Awake()
 {
     instance         = this;
     currentMainScene = null;
 }
예제 #4
0
 private void Awake()
 {
     instance = this;
 }
예제 #5
0
 public virtual void Initialize()
 {
     Debug.Assert(Canvas != null, "No Canvas Detected!");
     PersistentSceneManager = PersistentSceneManager.instance;
 }