Commit e73d29fe86389647b99517c741d8c5e6f1e2208f
1 parent
4055fa45
Exists in
master
and in
1 other branch
Velocidade da exibição parametrizada
Showing
1 changed file
with
8 additions
and
2 deletions
Show diff stats
Assets/Scripts/InspectorScript.cs
@@ -23,9 +23,15 @@ public class InspectorScript : MonoBehaviour { | @@ -23,9 +23,15 @@ public class InspectorScript : MonoBehaviour { | ||
23 | Queue<SubtitleInfo> subtitleQueue; | 23 | Queue<SubtitleInfo> subtitleQueue; |
24 | bool finalizeFlag; | 24 | bool finalizeFlag; |
25 | Time time; | 25 | Time time; |
26 | + float playerSpeed; | ||
27 | + string[] strArg; | ||
26 | 28 | ||
27 | void Start(){ | 29 | void Start(){ |
28 | - //Screen.SetResolution (1920, 1080, false); | 30 | + strArg = Environment.GetCommandLineArgs(); |
31 | + if(strArg.Length == 4) | ||
32 | + playerSpeed = 1+((float.Parse(strArg[3]))/100); | ||
33 | + else | ||
34 | + playerSpeed = 1.5f; | ||
29 | serverSemaphore = new Semaphore (0, 1); | 35 | serverSemaphore = new Semaphore (0, 1); |
30 | glosaQueue = new Queue<String>(); | 36 | glosaQueue = new Queue<String>(); |
31 | subtitleQueue = new Queue<SubtitleInfo>(); | 37 | subtitleQueue = new Queue<SubtitleInfo>(); |
@@ -115,7 +121,7 @@ public class InspectorScript : MonoBehaviour { | @@ -115,7 +121,7 @@ public class InspectorScript : MonoBehaviour { | ||
115 | } | 121 | } |
116 | } | 122 | } |
117 | foreach(AnimationState animState in COMPONENT_ANIMATION){ | 123 | foreach(AnimationState animState in COMPONENT_ANIMATION){ |
118 | - animState.speed = 1.2f; | 124 | + animState.speed = playerSpeed; |
119 | } | 125 | } |
120 | } // sendToPlayer | 126 | } // sendToPlayer |
121 | } // InspectorIscript | 127 | } // InspectorIscript |
122 | \ No newline at end of file | 128 | \ No newline at end of file |