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.
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
namespace Level1
|
|
|
|
|
{
|
|
|
|
|
public class Question {
|
|
|
|
|
public string title;
|
|
|
|
|
public string[] content;
|
|
|
|
|
public int answer;
|
|
|
|
|
|
|
|
|
|
public Question(string title,string[] content,int answer) {
|
|
|
|
|
this.title = title;
|
|
|
|
|
this.content = content;
|
|
|
|
|
this.answer = answer;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
[DefaultExecutionOrder(-9)]
|
|
|
|
|
public class DataManager : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
public List<Question> questionData = new List<Question>();
|
|
|
|
|
public List<string> dialogues = new List<string>();
|
|
|
|
|
private void Awake()
|
|
|
|
|
{
|
|
|
|
|
questionData.Add(new Question("1.心肺复苏术与心脏除颤的第一个步骤是",
|
|
|
|
|
new string[4] { "确认现场环境安全", "判断呼救", "30:2 的胸外按压与人工呼吸", "使用AED" },0));
|
|
|
|
|
dialogues.Add("在斑马线上发现了一个晕倒的行人");
|
|
|
|
|
dialogues.Add("请用鼠标拖动视角查看周围环境并在上方做出正确选择");
|
|
|
|
|
dialogues.Add("下一关 : 判断呼救");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|