-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShowFinalScore.cs
More file actions
33 lines (31 loc) · 928 Bytes
/
ShowFinalScore.cs
File metadata and controls
33 lines (31 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using UnityEngine;
public class ShowFinalScore : MonoBehaviour
{
public ExperimentState expState;
public TMPro.TMP_Text goodbyeText;
private void Start()
{
if (expState.group == 0)
{
goodbyeText.text =
"The End \n" +
"You have saved the submarine from sinking. \n" +
"\n" +
"Many thanks for taking part in this experiment. \n" +
"\n" +
"You may quit the app now. ";
}
else
{
goodbyeText.text =
"The End \n" +
"You have saved the submarine from sinking. \n" +
"\n" +
"Your total score is: " + expState.score.ToString() + "\n" +
"\n" +
"Many thanks for taking part in this experiment. \n" +
"\n" +
"You may quit the app now. ";
}
}
}