VideoRight.cs 638 B

1234567891011121314151617181920212223242526272829
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. public class VideoRight : MonoBehaviour
  6. {
  7. public Text t;
  8. public GameObject big;
  9. string initstr;
  10. private void Awake()
  11. {
  12. initstr = t.text;
  13. }
  14. string vurl;
  15. public void setdata(string url,int i)
  16. {
  17. t.text = t.text + "-" + i;
  18. vurl = url;
  19. this.GetComponentInChildren<seturl>().url(url);
  20. }
  21. public void clickbig()
  22. {
  23. big.SetActive(true);
  24. big.GetComponentInChildren<seturl>().url(vurl);
  25. big.GetComponentInChildren<Text>().text=t.text;
  26. }
  27. }