You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.2 KiB
43 lines
1.2 KiB
using UnityEngine; |
|
using System.Collections; |
|
using UnityEngine.UI; |
|
using System; |
|
|
|
public class ExamModeManager : MonoBehaviour { |
|
private Button SetExamModeButton; |
|
private Button StartExamModeButton; |
|
private Button MakeScoreModeButton; |
|
private Button ExamResultModeButton; |
|
// Use this for initialization |
|
void Start () { |
|
SetExamModeButton = transform.Find("SetExamModeButton").GetComponent<Button>(); |
|
SetExamModeButton.onClick.AddListener(SetExam); |
|
StartExamModeButton = transform.Find("StartExamModeButton").GetComponent<Button>(); |
|
StartExamModeButton.onClick.AddListener(StartExam); |
|
MakeScoreModeButton = transform.Find("MakeScoreModeButton").GetComponent<Button>(); |
|
MakeScoreModeButton.onClick.AddListener(MakeScore); |
|
ExamResultModeButton = transform.Find("ExamResultModeButton").GetComponent<Button>(); |
|
ExamResultModeButton.onClick.AddListener(ExamResult); |
|
} |
|
|
|
private void ExamResult() |
|
{ |
|
MySceneManager.MyLoadScene("ExamResult"); |
|
} |
|
|
|
private void MakeScore() |
|
{ |
|
MySceneManager.MyLoadScene("MakeScore"); |
|
} |
|
|
|
private void StartExam() |
|
{ |
|
MySceneManager.MyLoadScene("StartExam"); |
|
} |
|
|
|
private void SetExam() |
|
{ |
|
|
|
} |
|
|
|
}
|
|
|