示例#1
0
    /// <summary>
    /// 切换功能面板
    /// </summary>
    public void toggleFuntionPanel()
    {
        if (isDrawPLEnable)
        {
            paintPenCanvas.GetComponent <PPTDrawLineController>().ClearAllLine();
        }

        rubberButton.SetActive(true);
        paintPenCanvas.GetComponent <PPTDrawLineController>().isClear(rubberButton);

        SwitchRight.SetActive(!SwitchRight.activeSelf);
        SwitchLeft.SetActive(!SwitchLeft.activeSelf);
        FuntionMenu.SetActive(!FuntionMenu.activeSelf);
        gameObject.GetComponent <PPTResourcePool>().slideSlider.value = pageNum;
        gameObject.GetComponent <PPTResourcePool>().sliderValueChange();
        PPTPlayerFunPanel.SetActive(!PPTPlayerFunPanel.activeSelf);
        FuntionMenuDisableIm.SetActive(!FuntionMenuDisableIm.activeSelf);
        FuntionMenuEnableIm.SetActive(!FuntionMenuEnableIm.activeSelf);
        topCanvas.SetActive(!topCanvas.activeSelf);
        if (FuntionMenuDisableIm.activeSelf)
        {
            PauseButtonObj.SetActive(false);
            exitButtonObj.SetActive(false);
            goOn();
            Time.timeScale = 1;
        }
        else
        {
            PauseButtonObj.SetActive(true);
            exitButtonObj.SetActive(true);
            PausePlaying();
            Time.timeScale = 0;
        }
    }
示例#2
0
 /// <summary>
 /// 控制器初始化
 /// </summary>
 public void ControllerInit()
 {
     if (PPTGlobal.PPTEnv == PPTGlobal.PPTEnvironment.PPTPlayer)
     {
         FuntionMenu.SetActive(false);
         SwitchRight.SetActive(true);
         SwitchLeft.SetActive(true);
     }
     pageNum = 0;
     loadCanvas.SetActive(false);
     changeSlide();
     //mark 添加下方导航
 }