diff --git a/Assets/Scripts/InspectorScript.cs b/Assets/Scripts/InspectorScript.cs index 8df0484..8b08d06 100644 --- a/Assets/Scripts/InspectorScript.cs +++ b/Assets/Scripts/InspectorScript.cs @@ -23,9 +23,15 @@ public class InspectorScript : MonoBehaviour { Queue subtitleQueue; bool finalizeFlag; Time time; + float playerSpeed; + string[] strArg; void Start(){ - //Screen.SetResolution (1920, 1080, false); + strArg = Environment.GetCommandLineArgs(); + if(strArg.Length == 4) + playerSpeed = 1+((float.Parse(strArg[3]))/100); + else + playerSpeed = 1.5f; serverSemaphore = new Semaphore (0, 1); glosaQueue = new Queue(); subtitleQueue = new Queue(); @@ -115,7 +121,7 @@ public class InspectorScript : MonoBehaviour { } } foreach(AnimationState animState in COMPONENT_ANIMATION){ - animState.speed = 1.2f; + animState.speed = playerSpeed; } } // sendToPlayer } // InspectorIscript \ No newline at end of file -- libgit2 0.21.2