VideoLefttem.cs 509 B

12345678910111213141516171819202122232425
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. public class VideoLefttem : MonoBehaviour
  6. {
  7. public Text t;
  8. public GameObject big;
  9. string vurl;
  10. public void setdata(string url,int i)
  11. {
  12. vurl = url;
  13. t.text = i.ToString();
  14. }
  15. public void clickbig()
  16. {
  17. big.SetActive(true);
  18. big.GetComponentInChildren<seturl>().url(vurl);
  19. big.GetComponentInChildren<Text>().text="监控-"+t.text;
  20. }
  21. }