Example #1
0
    /// <summary>
    /// 暂停播放
    /// </summary>
    public void PausePlaying()
    {
        gameObject.GetComponent <PPTResourcePool>().slideSlider.value = pageNum;
        gameObject.GetComponent <PPTResourcePool>().sliderValueChange();
        Broadcast("Pause");
        //Time.timeScale = 0;
        PPTGlobal.pptStatus = PPTGlobal.PPTStatus.pause;
        topCanvas.SetActive(true);
        VqaTopCanvas.SetActive(true);
        topCanvas.BroadcastMessage("changeButtonColor", pageNum, SendMessageOptions.DontRequireReceiver);

        if (PPTGlobal.PPTEnv == PPTGlobal.PPTEnvironment.PPTPlayer)
        {
            if (!PPTPlayerFunPanel.activeSelf)
            {
                PauseButtonObj.SetActive(false);
                exitButtonObj.SetActive(false);
            }
        }
    }
Example #2
0
 /// <summary>
 /// navigation导航按钮选择
 /// </summary>
 /// <param name="i"></param>
 void navButtonSelect(int i)
 {
     if (PPTGlobal.PPTEnv == PPTGlobal.PPTEnvironment.PPTPlayer)
     {
         if (FuntionMenuEnableIm.activeSelf)
         {
             toggleFuntionPanel();
         }
         FuntionMenuDisableIm.SetActive(true);
         FuntionMenuEnableIm.SetActive(false);
     }
     VqaTopCanvas.BroadcastMessage("closeVqa", SendMessageOptions.DontRequireReceiver);
     topCanvas.BroadcastMessage("changeButtonColor", i, SendMessageOptions.DontRequireReceiver);
     pageNum = i - 1;
     topCanvas.SetActive(false);
     if (PPTGlobal.PPTEnv != PPTGlobal.PPTEnvironment.PPTPlayer)
     {
         VqaTopCanvas.SetActive(false);
     }
     changeSlide();
 }