Exemplo n.º 1
0
    void LockAngleEvent()
    {
        if (Cinema.IsInLockAngle)
        {
            CinemaGlobalToastCanvasControl.GetInstance().GlobalToast.ShowToastByXMLLanguageKey("Cinema.LockAngle.Quit.Toast");
            Cinema.IsPointerEnterVideoPlayerUI = false;

            VideoPlayerPanel.HideUI();
            UpdateUIAngleDir();
            //场景消失
            //CinemaMaterialSetting.GetInstance().UnLoadRender();
            //if (CinemaMaterialSetting.GetInstance().ImaxPurple.activeInHierarchy)
            //    CinemaMaterialSetting.GetInstance().ImaxPurple.SetActive(false);
            //if (CinemaMaterialSetting.GetInstance().DriveSceneBox.activeInHierarchy)
            //    CinemaMaterialSetting.GetInstance().DriveSceneBox.SetActive(false);
        }
    }
    void ClickFocusBtn(GameObject go)
    {
        Cinema.IsInFocus = !Cinema.IsInFocus;
        SettingsPanel.Hide();
        VolumePanel.Hide();

        if (!Cinema.IsInFocus)
        {
            CinemaGlobalToastCanvasControl.GetInstance().GlobalToast.Hide();
            if (!IsEnterFocus)
            {
                OnPointerExitFocusBtn(go);
            }
        }
        else
        {
            CinemaGlobalToastCanvasControl.GetInstance().GlobalToast.ShowToastByXMLLanguageKey("Cinema.VideoControlPanel.FocusBtn.Toast", -1);
        }
    }
 public void FocusComplete()
 {
     ClickFocusBtn(FocusBtn.gameObject);
     CinemaGlobalToastCanvasControl.GetInstance().GlobalToast.ShowToastByXMLLanguageKey("Cinema.Recentered.Toast");
 }