Fig Bug PostTest
This commit is contained in:
parent
be3300eba7
commit
26a7122dc3
|
|
@ -0,0 +1,24 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 31b9fba0680987640ade1fdf5d7d7a95, type: 3}
|
||||||
|
m_Name: Quis Penyakit Gigi 5
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
question: Apa nama penyakit yang membuat gigi terasa nyeri dan berlubang?
|
||||||
|
imageQuestion: {fileID: 0}
|
||||||
|
answers:
|
||||||
|
- Demam
|
||||||
|
- Sakit perut
|
||||||
|
- Karies gigi
|
||||||
|
- Sakit kepala
|
||||||
|
answerIndex: 2
|
||||||
|
nextSceneName: Lv2HardB
|
||||||
|
isMateriKesehatanGigi: 0
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 1df3e0fdc13203d44aa5731cda731b7f
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
|
@ -942,6 +942,18 @@ MonoBehaviour:
|
||||||
m_StringArgument:
|
m_StringArgument:
|
||||||
m_BoolArgument: 0
|
m_BoolArgument: 0
|
||||||
m_CallState: 2
|
m_CallState: 2
|
||||||
|
- m_Target: {fileID: 4707117238487448926}
|
||||||
|
m_TargetAssemblyTypeName: UnityEngine.Behaviour, UnityEngine
|
||||||
|
m_MethodName: set_enabled
|
||||||
|
m_Mode: 6
|
||||||
|
m_Arguments:
|
||||||
|
m_ObjectArgument: {fileID: 0}
|
||||||
|
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
|
||||||
|
m_IntArgument: 0
|
||||||
|
m_FloatArgument: 0
|
||||||
|
m_StringArgument:
|
||||||
|
m_BoolArgument: 0
|
||||||
|
m_CallState: 2
|
||||||
--- !u!1 &2823860279982107561
|
--- !u!1 &2823860279982107561
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
|
||||||
|
|
@ -72,8 +72,6 @@ public class PostTestMenu : Menu<PostTestMenu>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
async void LoadRandomQuestion()
|
async void LoadRandomQuestion()
|
||||||
{
|
{
|
||||||
if (questions.Count == 0)
|
if (questions.Count == 0)
|
||||||
|
|
@ -104,6 +102,7 @@ public class PostTestMenu : Menu<PostTestMenu>
|
||||||
timer = timeToComplete;
|
timer = timeToComplete;
|
||||||
isAnswering = true;
|
isAnswering = true;
|
||||||
hasAnsweredEarly = false;
|
hasAnsweredEarly = false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnAnswerSelected(int index)
|
public void OnAnswerSelected(int index)
|
||||||
|
|
@ -133,10 +132,9 @@ public class PostTestMenu : Menu<PostTestMenu>
|
||||||
questionText.text = "Jawaban Salah";
|
questionText.text = "Jawaban Salah";
|
||||||
}
|
}
|
||||||
|
|
||||||
saveData.preTestStatistik = (int)(((float)correctAnswers / totalQuestions) * 100f);
|
saveData.postTestStatistik = (int)(((float)correctAnswers / totalQuestions) * 100f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void ShowCorrectAnswer()
|
void ShowCorrectAnswer()
|
||||||
{
|
{
|
||||||
isAnswering = false;
|
isAnswering = false;
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@ public class SelectLevel : Menu<SelectLevel>
|
||||||
|
|
||||||
private SaveData saveData;
|
private SaveData saveData;
|
||||||
|
|
||||||
|
|
||||||
private async void OnEnable()
|
private async void OnEnable()
|
||||||
{
|
{
|
||||||
await LoadAndRefresh();
|
await LoadAndRefresh();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue