38 lines
633 B
C#
38 lines
633 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
public class TestPopup : MonoBehaviour
|
|
{
|
|
public bool IsTest = true;
|
|
public string testText = "";
|
|
|
|
public TextMeshProUGUI text = null;
|
|
|
|
private void Awake()
|
|
{
|
|
if(text != null)
|
|
{
|
|
text.text = testText;
|
|
}
|
|
}
|
|
|
|
public void ClickClose()
|
|
{
|
|
Destroy(gameObject);
|
|
}
|
|
|
|
public void ClickTest()
|
|
{
|
|
//GameManager.ADS.InitADSManager(IsTest);
|
|
|
|
//Destroy(gameObject);
|
|
|
|
if (text != null)
|
|
{
|
|
text.text = testText;
|
|
}
|
|
}
|
|
}
|