Arabic Slides Bug fix
This commit is contained in:
parent
14f5992faf
commit
c6be968792
@ -57367,7 +57367,7 @@ GameObject:
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &718829149
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -72736,6 +72736,7 @@ MonoBehaviour:
|
||||
progressbarCanvasGroup: {fileID: 406583814}
|
||||
slides_Arabic: {fileID: 1974174197}
|
||||
slides_English: {fileID: 641758312}
|
||||
phishingEmailClicked: 0
|
||||
--- !u!4 &903207697
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -96037,6 +96038,10 @@ MonoBehaviour:
|
||||
- {fileID: 2053632136}
|
||||
- {fileID: 1240692695}
|
||||
- {fileID: 2043462171}
|
||||
- {fileID: 1517723657}
|
||||
- {fileID: 600925544}
|
||||
- {fileID: 81321691}
|
||||
- {fileID: 1477731470}
|
||||
answerLabels:
|
||||
- {fileID: 659337612}
|
||||
- {fileID: 2068036434}
|
||||
@ -96044,6 +96049,7 @@ MonoBehaviour:
|
||||
- {fileID: 488671637}
|
||||
feedbackText: {fileID: 737073900}
|
||||
restartButton: {fileID: 18539499}
|
||||
restartButtonArabic: {fileID: 1131745271}
|
||||
--- !u!4 &1210835902
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -102213,6 +102219,7 @@ MonoBehaviour:
|
||||
subtitleText: {fileID: 1874077070}
|
||||
charDelay: 0.075
|
||||
lineGroupDelay: 4.5
|
||||
audioSource: {fileID: 0}
|
||||
--- !u!1001 &1303496878
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -151117,7 +151124,7 @@ GameObject:
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1974174198
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -9,6 +9,7 @@ public class MiniQuizManager : MonoBehaviour
|
||||
public TextMeshProUGUI[] answerLabels;
|
||||
public TextMeshProUGUI feedbackText;
|
||||
public GameObject restartButton;
|
||||
public GameObject restartButtonArabic;
|
||||
|
||||
private string[] answerTexts = new string[]
|
||||
{
|
||||
@ -31,9 +32,11 @@ public class MiniQuizManager : MonoBehaviour
|
||||
public void SubmitAnswer(int selectedIndex)
|
||||
{
|
||||
NarrationPlayer.Instance.PlayNarration(NarrationID.GameEnd);
|
||||
restartButton.SetActive(true);
|
||||
|
||||
bool isArabic = LanguageManager.Instance != null &&
|
||||
LanguageManager.Instance.currentLanguage == "Arabic";
|
||||
(isArabic ? restartButtonArabic : restartButton).SetActive(true);
|
||||
|
||||
|
||||
string selectedAnswer = answerTexts[selectedIndex];
|
||||
string selectedAnswerAr = answerTextsAr[selectedIndex];
|
||||
|
Loading…
x
Reference in New Issue
Block a user