You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Assets/UXF/Scripts/Session.cs
+19-3Lines changed: 19 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -93,6 +93,13 @@ public class Session : MonoBehaviour, IExperimentUnit, IDataAssociatable
93
93
[Tooltip("Items in this event will be triggered when the session begins. Useful generating your trials & blocks, setting up the scene, and triggering the first trial.")]
/// Event(s) to trigger when a block begins. Can pass the instance of the Block as a dynamic argument
98
+
/// </summary>
99
+
/// <returns></returns>
100
+
[Tooltip("Items in this event will be triggered each time a block begins.")]
101
+
publicBlockEventonBlockBegin=newBlockEvent();
102
+
96
103
/// <summary>
97
104
/// Event(s) to trigger when a trial begins. Can pass the instance of the Trial as a dynamic argument
98
105
/// </summary>
@@ -107,6 +114,13 @@ public class Session : MonoBehaviour, IExperimentUnit, IDataAssociatable
107
114
[Tooltip("Items in this event will be triggered each time a trial ends. Useful for collecting results from the trial as well as showing feedback.")]
108
115
publicTrialEventonTrialEnd=newTrialEvent();
109
116
117
+
/// <summary>
118
+
/// Event(s) to trigger when a block ends. Can pass the instance of the Block as a dynamic argument
119
+
/// </summary>
120
+
/// <returns></returns>
121
+
[Tooltip("Items in this event will be triggered each time a block ends.")]
122
+
publicBlockEventonBlockEnd=newBlockEvent();
123
+
110
124
/// <summary>
111
125
/// Event(s) to trigger just before the session has ended. If you wish to perform any summary statistics or write any final session data this is the time to do it. Do not use this event to quit the application.
112
126
/// </summary>
@@ -486,15 +500,17 @@ Trial GetFirstTrial()
486
500
TrialGetLastTrial()
487
501
{
488
502
if(blocks.Count==0)thrownewNoSuchTrialException("There is no last trial because no blocks have been created!");
0 commit comments