天津23维预案
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.
 
 
 
 
 
 

33 lines
796 B

using UnityEngine;
using System.Collections;
using AX.MessageSystem;
public class EnterSelectedScene : MonoBehaviour {
// Use this for initialization
private ExamInfoHelpClass.Scene sceneType;
void Start ()
{
MessageDispatcher.AddListener("SecneSelect", GetSelectSence);
}
void Destory()
{
}
// Update is called once per frame
void Update () {
}
private void GetSelectSence(IMessage SceneType)
{
sceneType = (ExamInfoHelpClass.Scene)SceneType.Data;
}
public void enterScene()
{
var question = new ExaminationQuestionObject();
question.SceneType = (int)sceneType;
ExaminationQuestionDetail.question = question;
MySceneManager.MyLoadScene(question.SceneType.ToString());
}
}