32 lines
588 B
C#
32 lines
588 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
using UnityEngine.UI;
|
||
|
|
||
|
public class EndGameModule : MonoBehaviour
|
||
|
{
|
||
|
[TextArea]
|
||
|
public string VicoryText;
|
||
|
[TextArea]
|
||
|
public string LoseText;
|
||
|
|
||
|
[SerializeField]
|
||
|
private UITextShow _textShow;
|
||
|
[SerializeField]
|
||
|
private UIPanel _uiPanel;
|
||
|
|
||
|
public void ShowEndMenu(bool success)
|
||
|
{
|
||
|
_uiPanel.ShowPanel();
|
||
|
|
||
|
if (success)
|
||
|
{
|
||
|
_textShow.SetText(VicoryText);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
_textShow.SetText(LoseText);
|
||
|
}
|
||
|
}
|
||
|
}
|