|
@@ -28,9 +28,12 @@ public class ViveInput : MonoBehaviour
|
|
|
|
|
|
void Update()
|
|
|
{
|
|
|
- if (grabPinch.GetStateDown(SteamVR_Input_Sources.Any))
|
|
|
+ if (grabPinch.GetStateDown(SteamVR_Input_Sources.Any) && !isPlaying)
|
|
|
{
|
|
|
-
|
|
|
+ Debug.Log("Loading...");
|
|
|
+ csvTime = 0;
|
|
|
+ isPlaying = true;
|
|
|
+ playerReplay.Load();
|
|
|
}
|
|
|
|
|
|
if (teleport.GetStateDown(SteamVR_Input_Sources.Any))
|
|
@@ -50,12 +53,9 @@ public class ViveInput : MonoBehaviour
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (grabGrib.GetStateDown(SteamVR_Input_Sources.Any) && !isPlaying)
|
|
|
+ if (grabGrib.GetStateDown(SteamVR_Input_Sources.Any))
|
|
|
{
|
|
|
- Debug.Log("Loading...");
|
|
|
- csvTime = 0;
|
|
|
- isPlaying = true;
|
|
|
- playerReplay.Load();
|
|
|
+
|
|
|
}
|
|
|
|
|
|
if (isRecording)
|