1234567891011121314151617181920212223242526272829 |
- 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<seturl>().url(url);
- }
- public void clickbig()
- {
- big.SetActive(true);
- big.GetComponentInChildren<seturl>().url(vurl);
- big.GetComponentInChildren<Text>().text=t.text;
- }
- }
|