25 lines
544 B
C#
25 lines
544 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
using UnityEngine.UI;
|
||
|
public class VideoBack : MonoBehaviour
|
||
|
{
|
||
|
private Button closeBtn;
|
||
|
// Start is called before the first frame update
|
||
|
void Start()
|
||
|
{
|
||
|
closeBtn=transform.Find("top/Image").GetComponent<Button>();
|
||
|
closeBtn.onClick.AddListener(OnClickCloseBtn);
|
||
|
}
|
||
|
|
||
|
// Update is called once per frame
|
||
|
void Update()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
void OnClickCloseBtn()
|
||
|
{
|
||
|
transform.gameObject.SetActive(false);
|
||
|
}
|
||
|
}
|