Пример #1
0
 public override void Begin()
 {
     if (PPTGlobal.PPTEnv != PPTGlobal.PPTEnvironment.PPTPlayer)
     {
         try
         {
             SetModelCam(false);
         }
         catch (Exception e)
         {
             Debug.Log(e.Message);
             Debug.Log(e.StackTrace);
         }
         if (SceneModels.instance != null)
         {
             if (playerCommand != null)
             {
                 try
                 {
                     playerCommand.ReadBookMark();
                 }
                 catch (Exception e)
                 {
                     Debug.Log(e.Message);
                     Debug.Log(e.StackTrace);
                 }
             }
         }
     }
 }
Пример #2
0
    public void LoadBookMark()
    {
        DebugLog.DebugLogInfo("打开开关按钮");

        playRecord.ReadBookMark();

        DebugLog.DebugLogInfo("BookMarkManager.instance  " + (BookMarkManager.instance.BookmarkPanel == null));
        DebugLog.DebugLogInfo("BookMarkManager.instance  " + BookMarkManager.instance.BookmarkPanel.name);
        BookMarkManager.instance.SetBookmarkPanel(false);
        CommandManager.instance.ClearRecordStack();
        PublicClass.currentState = RunState.Playing;
    }
Пример #3
0
    //读取书签
    public void LoadBookMark()
    {
        DebugLog.DebugLogInfo("打开开关按钮");

        #region

        //if (btnState.isMultiBtnUI== false)
        //{
        //    SceneModels.instance.set_Multi_Selection(false);
        //    // SceneModels.instance.CancleSelect();
        //    UIChangeTool.ShowOneObject(XT_AllButton.Instance.openMu, XT_AllButton.Instance.closeMu, false);
        //    // XT_AllButton.Instance.multiSelectBtn.GetComponent<Image>().color = Color.white;
        //}
        //else
        //{
        //    SceneModels.instance.set_Multi_Selection(true);
        //    // XT_AllButton.Instance.multiSelectBtn.GetComponent<Image>().color = new Color(1, 1, 1, 0.5f);
        //    UIChangeTool.ShowOneObject(XT_AllButton.Instance.openMu, XT_AllButton.Instance.closeMu, true);
        //}

        //DebugLog.DebugLogInfo("交互模块赋值");
        //Interaction.instance.gameObject.transform.localPosition=new Vector3(cameraParams.positionx, cameraParams.positiony,cameraParams.distance);

        //Interaction.instance.rotateAxis.transform.localPosition = new Vector3(cameraParams.rotateAxis.x, cameraParams.rotateAxis.y, cameraParams.rotateAxis.z);
        //Interaction.instance.y = cameraParams.rotation.x;
        //Interaction.instance.x = cameraParams.rotation.y;
        //Interaction.instance.rotateAxis.transform.rotation= Quaternion.Euler(-cameraParams.rotation.x, cameraParams.rotation.y,0);

        //DebugLog.DebugLogInfo("场景模型信息");
        //Model[] tempAllmodel = SceneModels.instance.Get_scope_models();
        //DebugLog.DebugLogInfo("场景模型长度 "+tempAllmodel.Length);

        //try
        //{
        //    //解析场景模型信息
        //    for (int i = 0; i < tempAllmodel.Length; i++)
        //    {
        //        modelState outState = modelState.SceneModelStateDict[tempAllmodel[i].name];
        //        if (outState.isActive)
        //        {

        //            tempAllmodel [i].gameObject.transform.position=new Vector3(outState.position.x,outState.position.y,outState.position.z);
        //            tempAllmodel[i].BecomeDisplay();
        //            if (outState.isSeleted)
        //            {
        //                SceneModels.instance.ChooseModel(tempAllmodel[i]);
        //            }
        //            else
        //            {
        //                tempAllmodel[i].BecomeNormal();
        //            }
        //            if (outState.isFade)
        //            {
        //                tempAllmodel[i].BecomeTranslucent();
        //            }
        //        }
        //        else
        //        {
        //            tempAllmodel[i].BecomeHide();
        //        }
        //    }
        //}
        //catch (System.Exception e)
        //{
        //    DebugLog.DebugLogInfo("Message  "+e.Message);
        //    DebugLog.DebugLogInfo("StackTrace  "+e.StackTrace);
        //}

        #endregion



        playRecord.ReadBookMark();

        DebugLog.DebugLogInfo("BookMarkManager.instance  " + (BookMarkManager.instance.BookmarkPanel == null));
        DebugLog.DebugLogInfo("BookMarkManager.instance  " + BookMarkManager.instance.BookmarkPanel.name);
        BookMarkManager.instance.SetBookmarkPanel(false);
        CommandManager.instance.ClearRecordStack();
        PublicClass.currentState = RunState.Playing;
    }