|
@@ -297,11 +297,12 @@ public class PlayerReplay : MonoBehaviour
|
|
bc.endStepsPressed = false;
|
|
bc.endStepsPressed = false;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // TODO: maybe need to check if body is null or not (after 6 seconds body is destroyed, destroy a destroyed gameobject error?)
|
|
|
|
+ Destroy(body);
|
|
|
|
+
|
|
// Wait for input
|
|
// Wait for input
|
|
yield return ViveInput.WaitForControllerPress();
|
|
yield return ViveInput.WaitForControllerPress();
|
|
|
|
|
|
- Destroy(body);
|
|
|
|
-
|
|
|
|
if (finish)
|
|
if (finish)
|
|
break;
|
|
break;
|
|
}
|
|
}
|