Пример #1
0
 /// <summary>
 /// 隐藏PptPlayer基础按钮
 /// </summary>
 public void HideBaseButton()
 {
     FuntionMenu.SetActive(false);
     rubberButton.SetActive(false);
     FuntionMenuDisableIm.SetActive(false);
     FuntionMenuEnableIm.SetActive(false);
     ParticleDrawLineButtonEnableIm.SetActive(false);
     ParticleDrawLineButtonDisableIm.SetActive(false);
     NLButtonEnableIm.SetActive(false);
     NLButtonDisableIm.SetActive(false);
     enableRecord.SetActive(false);
     disableRecord.SetActive(false);
 }
Пример #2
0
    /// <summary>
    /// 播放前初始化
    /// </summary>
    public void PPTInit()
    {
        Debug.Log("C PPTInit");
        pauseflag       = false;
        GameFrame       = 0;
        slideTime       = 0;
        pageNum         = 0;
        AccumilatedTime = 0;
        totalTime       = 0;
        currentSlideObj = null;
        currentSlide    = null;
        if (PPTGlobal.PPTEnv == PPTGlobal.PPTEnvironment.WeiKePlayer)
        {
            quitText.text = "是否退出?";
        }
        if (PPTGlobal.PPTEnv == PPTGlobal.PPTEnvironment.PPTPlayer)
        {
            WeiKePnael.SetActive(false);
            DestroyObject(WeiKePnael);
            quitText.text = "是否退出?";
            if (isEnableRecord)
            {
                RecordButton.SetActive(true);
                exportButton.gameObject.SetActive(true);
            }
            else
            {
                RecordButton.SetActive(false);
                exportButton.gameObject.SetActive(false);
            }
            rubberButton.SetActive(false);
            FuntionMenuDisableIm.SetActive(true);
            FuntionMenuEnableIm.SetActive(false);
            ParticleDrawLineButtonEnableIm.SetActive(false);
            ParticleDrawLineButtonDisableIm.SetActive(true);

            NLButtonEnableIm.SetActive(false);;
            NLButtonDisableIm.SetActive(true);;

            isDrawNLEnable = false;
            isDrawPLEnable = false;

            enableRecord.SetActive(false);
            disableRecord.SetActive(true);

            slideTotaltimes.Clear();

            ParticleDrawLineButtonEnableIm.transform.parent.gameObject.SetActive(isDrawNLEnable);
            toggleDrawLineEnable();
            //toggleDrawNLEnable();
        }
        else
        {
            WeiKePnael.SetActive(true);
            PPTPlayerFunPanel.SetActive(false);
            DestroyObject(PPTPlayerFunPanel);
        }

        quitAppPanel.SetActive(false);

        NavigationButtonListener.controller = gameObject;
        topCanvasScaler = topCanvas.GetComponent <CanvasScaler>();
        //topCanvas.GetComponent<CanvasScaler>().scaleFactor = Screen.width / 1920f;
    }