Dicoding. (2022, 08 12). Contoh Use case Diagram. Diambil kembali dari
https://www.dicoding.com/blog/contoh-use-case-diagram/
Humairoh, N. K., Akbar , M., & Sauda, S. (2020). Pembangunan Aplikasi Game
Gerbang Dengan Menggunakan Metode IMSDD. Jurnal of information
system and informatics, 2(1), 1-11.
Setiawan, R. (2021, 11 17). Black Box Testing Untuk Menguji Perangkat Lunak.
Diambil kembali dari https://www.dicoding.com/blog/black-box-testing/
Haka MJ, (2006). Teknologi Informasi, dan komunikasi. Solo : CV. Haka MJ.
LAMPIRAN
1. Home Manager
using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
using UnityEngine;
using TMPro;
textName.text = gameManager.GetStudentName();
//exti game
ButtonExit.onClick.AddListener(delegate
{
Application.Quit();
});
}
}
}
2. Materi Manager
using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
using UnityEngine;
using TMPro;
//reset image
private void OnDisable()
{
RectTransform image = ImageToChange.rectTransform;
image.localScale = Vector2.one;
float heigh = 383;
float width = 462;
image.sizeDelta = new Vector2(width, heigh);
ImageToChange.sprite = Original;
}
3. Setting manager
using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
using UnityEngine;
ButtonOn.onClick.AddListener(delegate
{
gameManager.PauseBGM();
ButtonOff.gameObject.SetActive(true);
ButtonOn.gameObject.SetActive(false);
});
ButtonOff.onClick.AddListener(delegate
{
gameManager.PlayBGM();
ButtonOn.gameObject.SetActive(true);
ButtonOff.gameObject.SetActive(false);
});
}
}
}
4. Score Manager
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
gameManager.LoadLeaderBoard();
}
}
}
5. Quiz Manager
using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
using UnityEngine;
using TMPro;
using System;
//set Quiz
public void Initialization()
{
//reset button image
for (int i = 0; i < Buttons.Count; i++)
{
Buttons[i].GetComponent<Button>().enabled = true;
Buttons[i].GetComponent<Image>().color = Color.white;
}
Buttons[i].GetComponent<Button>().onClick.AddListener( delegate
{
if (!clicked)
{
gameManager.AddScore();
gameManager.PlayGood();
Buttons[id].GetComponent<Image>().color =
Color.green;
Buttons[id].GetComponent<Button>().enabled = false;
WaitForColldown();
clicked = true;
}
});
}
else
{
int id = i;
Buttons[i].GetComponent<Button>().onClick.AddListener( delegate
{
gameManager.SubScore();
gameManager.PlayWrong();
Buttons[id].GetComponent<Image>().color = Color.red;
Buttons[id].GetComponent<Button>().enabled = false;
});
}
}
}
//set score text
public void SetScoreTExt()
{
textScore.text = "Score : " + gameManager.score.ToString();
}
IEnumerator _IEWaitForColldown()
{
yield return new WaitForSeconds(3);
clicked = false;
gameManager.CallFunctionQuiz();
}
}
6. Slider Snap
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
using UnityEngine.UIElements;
7. List Rank
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
}
}
8. Finish Manager
using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
using UnityEngine;
using TMPro;
studentName.text = name;
studentScore.text = score.ToString();
gameManager.ChechCurrentScore(name, score);
}
}
}
Lampiran 2 Dokumentasi Penerapan Aplikasi