40 lines
1023 B
C#
40 lines
1023 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
[Serializable]
|
|
public class Mission
|
|
{
|
|
public string content;
|
|
}
|
|
public class UI_CheckTaskPanel : BasePanel
|
|
{
|
|
public override void ShowMe()
|
|
{
|
|
base.ShowMe();
|
|
GameManager.EventMgr.EventTrigger<bool>(Enum_EventType.PlayerCanMove, false);
|
|
}
|
|
public override void HideMe()
|
|
{
|
|
base.HideMe();
|
|
GameManager.EventMgr.EventTrigger<bool>(Enum_EventType.PlayerCanMove, true);
|
|
}
|
|
public void Init()
|
|
{
|
|
Mission jsonData = GameManager.JsonMgr.LoadData<Mission>($"MissionData/{GameManager.RunModelMgr.schemeID.ToString()}");
|
|
GetControl<TextMeshProUGUI>("Text_Content").text = jsonData.content;
|
|
}
|
|
|
|
protected override void OnClick(string btnName)
|
|
{
|
|
switch (btnName)
|
|
{
|
|
case "Button_Close":
|
|
GameManager.UIMgr.HidePanel<UI_CheckTaskPanel>();
|
|
break;
|
|
}
|
|
}
|
|
}
|