12345678910111213141516171819202122232425 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class VideoLefttem : MonoBehaviour
- {
- public Text t;
- public GameObject big;
- string vurl;
- public void setdata(string url,int i)
- {
- vurl = url;
- t.text = i.ToString();
- }
- public void clickbig()
- {
- big.SetActive(true);
- big.GetComponentInChildren<seturl>().url(vurl);
- big.GetComponentInChildren<Text>().text="监控-"+t.text;
- }
- }
|