using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class VideoRight : MonoBehaviour { public Text t; public GameObject big; string initstr; private void Awake() { initstr = t.text; } string vurl; public void setdata(string url,int i) { t.text = t.text + "-" + i; vurl = url; this.GetComponentInChildren().url(url); } public void clickbig() { big.SetActive(true); big.GetComponentInChildren().url(vurl); } }