34 lines
767 B
C#
34 lines
767 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using LitJson;
|
|
using NaughtyAttributes;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using XUI;
|
|
|
|
public class SettlePanel : UIBehaviour
|
|
{
|
|
|
|
public GameObject winPre;
|
|
public GameObject losePre;
|
|
|
|
public TextMeshProUGUI text;
|
|
|
|
public bool isWin;
|
|
public static void Show(bool isWin)
|
|
{
|
|
WorldUIManager.Ins.Cover("UI/SettlePanel",false, isWin);
|
|
}
|
|
|
|
public override void OnUIShow(params object[] args)
|
|
{
|
|
base.OnUIShow(args);
|
|
isWin = (bool)args[0];
|
|
winPre.SetActive(isWin);
|
|
losePre.SetActive(!isWin);
|
|
text.gameObject.SetActive(isWin);
|
|
text.text = GameManager.Ins.GetLessTimeStr()+"<size=48><color=white>通关";
|
|
}
|
|
}
|