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.

64 lines
1.3 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using HJDFrameWork;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
/// <summary>
/// 功能框架Root
/// 说明:
/// </summary>
namespace Level05
{
public class Level05Root : MonoBehaviour
{
public static Level05Root Instance = null;
//初始化顺序Manager==>各窗口===>>视图Model类==>>
private void Awake()
{
Instance = this;
ItemManager itemManager = ItemManager.Instance;
itemManager.Init();
ViewManager viewManager = ViewManager.Instance;
viewManager.Init();
//初始化其他
AnswerSys answerSys = GetComponent<AnswerSys>();
answerSys.Init();
}
public void TimeTask(float time, Action action)
{
StartCoroutine(AddTimeTask(time, action));
}
IEnumerator AddTimeTask(float time,Action action)
{
yield return new WaitForSeconds(time);
action();
}
public void LoadScene(string SceneName)
{
SceneManager.LoadScene(SceneName);
}
public void PassSucueed()
{
//EduCoderTool.WebConnecter.Singleton.SendResultToWeb(true);
}
}
}