VideoLefttem.cs 443 B

123456789101112131415161718192021222324
  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. }
  20. }