Subversion Repository Public Repository

Nextrek

Diff Revisions 164 vs 165 for /3DSpace/Assets/Custum/Scripts/SpaceMap/PlayVideo.cs

Diff revisions: vs.
  @@ -20,6 +20,11 @@
20 20 {
21 21 if(PlayVideo.startPlay)
22 22 {
23 + if(PlayerPrefs.GetInt("PlayerFinishedLevel",0)>0)
24 + {
25 + PlayVideo.startPlay = false;
26 + return;
27 + }
23 28 if(leftTime<=0)
24 29 {
25 30 PlayVideo.startPlay = false;
  @@ -32,6 +37,11 @@
32 37 {
33 38 if(PlayVideo.startPlay)
34 39 {
40 + if(PlayerPrefs.GetInt("PlayerFinishedLevel",0)>0)
41 + {
42 + PlayVideo.startPlay = false;
43 + return;
44 + }
35 45 //绘制电影纹理
36 46 GUI.DrawTexture (new Rect (0,0, Screen.width, Screen.height),mov,ScaleMode.StretchToFill);
37 47 if(!mov.isPlaying)