|
@@ -318,10 +318,13 @@ public class GameManager : MonoSingleton<GameManager>
|
|
|
lockTime = 0;
|
|
|
}
|
|
|
}
|
|
|
- if (TemplateVideo.temQueue.Count>0&&!TemplateVideo.isPlaying)
|
|
|
+ if (TemplateVideo.temQueue.Count>0&&!TemplateVideo.isPlaying &&!TemplateVideo.isPlayLock)
|
|
|
{
|
|
|
TemplateVideo.isPlaying = true;
|
|
|
TemplateVideo video = TemplateVideo.temQueue.Dequeue();
|
|
|
+#if !UNITY_EDITOR
|
|
|
+ video.m_Video.SetUrl("file://"+ video.localSavePath);
|
|
|
+#endif
|
|
|
video.m_Video.transform.GetComponent<VideoPlayBtn>().m_IsPlaying = false;
|
|
|
video.m_Video.transform.GetComponent<VideoPlayBtn>().PlayVideoAuto();
|
|
|
avplayer = video.m_Video;
|
|
@@ -482,7 +485,7 @@ public class GameManager : MonoSingleton<GameManager>
|
|
|
|
|
|
|
|
|
|
|
|
- #region 设置功能
|
|
|
+#region 设置功能
|
|
|
|
|
|
public void OnEditorBtnValueChanged(bool ison)
|
|
|
{
|
|
@@ -659,9 +662,9 @@ public class GameManager : MonoSingleton<GameManager>
|
|
|
}
|
|
|
|
|
|
}
|
|
|
- #endregion
|
|
|
+#endregion
|
|
|
|
|
|
- #region 获取景点信息--素材编辑模式下
|
|
|
+#region 获取景点信息--素材编辑模式下
|
|
|
|
|
|
|
|
|
|
|
@@ -709,9 +712,9 @@ public class GameManager : MonoSingleton<GameManager>
|
|
|
m_UIAnchorsPanel.SaveAnchors(name);
|
|
|
|
|
|
}
|
|
|
- #endregion
|
|
|
+#endregion
|
|
|
|
|
|
- #region 创建水晶点、触发器范围、显示物体
|
|
|
+#region 创建水晶点、触发器范围、显示物体
|
|
|
|
|
|
public void CreateScene(SceneValue scene)
|
|
|
{
|
|
@@ -1473,9 +1476,9 @@ public class GameManager : MonoSingleton<GameManager>
|
|
|
return objectValue;
|
|
|
}
|
|
|
|
|
|
- #endregion
|
|
|
+#endregion
|
|
|
|
|
|
- #region 路径
|
|
|
+#region 路径
|
|
|
|
|
|
|
|
|
|
|
@@ -1490,9 +1493,9 @@ public class GameManager : MonoSingleton<GameManager>
|
|
|
}
|
|
|
RouteCtr.SetRouteValue(navLines);
|
|
|
}
|
|
|
- #endregion
|
|
|
+#endregion
|
|
|
|
|
|
- #region 锚点
|
|
|
+#region 锚点
|
|
|
|
|
|
|
|
|
|
|
@@ -1562,10 +1565,10 @@ public class GameManager : MonoSingleton<GameManager>
|
|
|
|
|
|
return mesh;
|
|
|
}
|
|
|
- #endregion
|
|
|
+#endregion
|
|
|
|
|
|
|
|
|
- #region 触发器判定
|
|
|
+#region 触发器判定
|
|
|
|
|
|
|
|
|
|
|
@@ -1718,7 +1721,7 @@ public class GameManager : MonoSingleton<GameManager>
|
|
|
|
|
|
|
|
|
|
|
|
- #endregion
|
|
|
+#endregion
|
|
|
|
|
|
public ObjectValue GetCurrentColliderValue()
|
|
|
{
|