QuestionPanelTest.cs 581 B

1234567891011121314151617181920
  1. using QFramework;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. public class QuestionPanelTest : MonoBehaviour
  6. {
  7. public string stepId;
  8. private void Start()
  9. {
  10. ResKit.Init();
  11. List<QuestionInfo> tmpQuestionInfos = DAL.Instance.Get<QuestionProxy>().ReadStepMsgInfoFromTable("220kV隔离开关-GW4A型解体大修_题库");
  12. QuestionInfo tmpQuestionInfo = tmpQuestionInfos.Find(t => t.StepId == stepId);
  13. UIKit.OpenPanel<QuestionPanel>(new QuestionPanelData() {questionInfo = tmpQuestionInfo });
  14. }
  15. }