@@ -115,6 +115,7 @@ private void InitialiseNextQuest()
115
115
case QuestType . PointToTarget :
116
116
{
117
117
SnipeTarget . Sniped += OnSniped ;
118
+ previousLandmark = currentQuest . landmark ;
118
119
currentQuest . landmark = currentQuest . GetNextLandmark ( mainQuestLandmarkSequence ) ;
119
120
string col = ColorUtility . ToHtmlStringRGB ( NodeManager . Instance . ReturnColor ( currentQuest . landmark ) ) ;
120
121
mainNotification . UpdateText ( "Please point at the <b><color=#" + col + ">" + currentQuest . landmark + "</color></b>" , 2 , 2 ) ;
@@ -181,10 +182,14 @@ private void EndScene(string questType)
181
182
182
183
private IEnumerator SwitchToNextPointTask ( )
183
184
{
185
+ timer . Pause ( ) ;
184
186
currentQuest . state = QuestState . Finished ;
185
187
SimpleCapsuleWithStickMovement . Instance . EnableLinearMovement = false ;
186
188
string col = ColorUtility . ToHtmlStringRGB ( NodeManager . Instance . ReturnColor ( currentQuest . landmark ) ) ;
187
189
mainNotification . UpdateText ( "Congratulations, you made it to the <color=#" + col + ">" + currentQuest . landmark + "</color>!" , 1 , 2 ) ;
190
+ string finalTime = $ "{ timer . GetRawElapsedTime ( ) : 0.##} ";
191
+ string task = "from" + previousLandmark + "to" + currentQuest . landmark ;
192
+ DataLogger . Instance . LogActivityData ( task , finalTime ) ;
188
193
yield return new WaitForSeconds ( 3f ) ;
189
194
currentQuest . type = QuestType . PointToTarget ;
190
195
InitialiseNextQuest ( ) ;
@@ -193,6 +198,8 @@ private IEnumerator SwitchToNextPointTask()
193
198
private IEnumerator SwitchToNavigation ( )
194
199
{
195
200
yield return new WaitForSeconds ( 3f ) ;
201
+ timer . Reset ( ) ;
202
+ timer . Begin ( ) ;
196
203
currentQuest . type = QuestType . NavigateToTarget ;
197
204
SimpleCapsuleWithStickMovement . Instance . EnableLinearMovement = true ;
198
205
string col = ColorUtility . ToHtmlStringRGB ( NodeManager . Instance . ReturnColor ( currentQuest . landmark ) ) ;
0 commit comments