天津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.
 
 
 
 
 
 

37 lines
1019 B

using UnityEngine;
using System.Collections;
using System;
using UnityEngine.UI;
using System.IO;
public class ExamQuestionScoreItemManager : BaseSubItemManager
{
protected Button CheckScoreButton;
public override void ButtonInit()
{
CheckScoreButton = transform.Find("check").GetComponent<Button>();
}
public void CheckScoreButtonClick()
{
//加载评分记录,回放
string filename = /*ExamInfoHelpClass.CurrentWorkPath +*/ "score/" + question.SceneType + ".xml";
NodeSet.Instance.LoadRecordFromFile(filename);
}
void Start()
{
CheckIfHasScore();
}
private void CheckIfHasScore()
{
//一个答案只有一个评分文件时采用以下方法
string filename = ExamInfoHelpClass.CurrentWorkPath + "score/" + question.SceneType + ".xml";
var flag = File.Exists(filename);
CheckScoreButton.gameObject.SetActive(flag);
}
public override void CheckIfHasAnswer()
{
}
}