33 lines
806 B
C#
33 lines
806 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class InitialTaskUIShow : SingletonMono<InitialTaskUIShow>
|
|
{
|
|
public static bool isShown = false;
|
|
|
|
|
|
// Start is called before the first frame update
|
|
public void Init()
|
|
{
|
|
isShown = false;
|
|
GameManager.EventMgr.AddEventListener(Enum_EventType.EnterSceneInitialDisplayTaskUI, InitTaskUI);
|
|
}
|
|
|
|
public void InitTaskUI( )
|
|
{
|
|
if (!isShown)
|
|
{
|
|
isShown = true;
|
|
//if (GameManager.MissionMgr.mission == null)
|
|
// GameManager.MissionMgr.Init();
|
|
GameManager.UIMgr.ShowPanel<UI_CheckTaskPanel>(E_UI_Layer.Mid, (p) => { p.Init(); });
|
|
|
|
}
|
|
else
|
|
{
|
|
Debug.Log("ÈÎÎñÃæ°åÒÑÏÔʾ");
|
|
}
|
|
}
|
|
}
|