-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathShowCue.cs
44 lines (42 loc) · 1.74 KB
/
ShowCue.cs
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
34
35
36
37
38
39
40
41
42
43
44
namespace ARTreasureHunt
{
using TMPro;
using UnityEngine;
public class ShowCue : MonoBehaviour
{
[SerializeField] GameObject ShowCueBox;
[SerializeField] TMP_Text Hint;
public void OnItemClicked()
{
if (gameObject.name == "Christmas Tree Icon")
{
Hint.text = "Begin your journey where you stand strong. Seek the first treasure along the main road; it won't take long";
ShowCueBox.SetActive(true);
}
else if (gameObject.name == "Present Box Icon")
{
Hint.text = "You're on the right track, just 50 steps away. Look around, don't delay. The second treasure is close, where you stand today";
ShowCueBox.SetActive(true);
}
else if (gameObject.name == "Santa Hat Icon")
{
Hint.text = "Watch out for signs that say 'No Parking.' The third treasure is there, it's not harking. Find it near where cars are forbidden, and your treasure hunt skills will be truly hidden";
ShowCueBox.SetActive(true);
}
else if (gameObject.name == "Gingerbread Icon")
{
Hint.text = "Take a detour, explore the unknown. Head towards a side road where the fourth treasure is sown";
ShowCueBox.SetActive(true);
}
else if (gameObject.name == "Candy Cane Icon")
{
Hint.text = "To the heart of the city, where structures stand tall. In front of a building, the fifth treasure will call";
ShowCueBox.SetActive(true);
}
else
{
ShowCueBox.SetActive(false);
}
}
}
}