ServerRoomVideoManager.cs 609 B

1234567891011121314151617181920212223242526
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using RenderHeads.Media.AVProVideo;
  4. using UnityEngine;
  5. using static Manager;
  6. public class ServerRoomVideoManager : MonoBehaviour
  7. {
  8. public GameObject jifang;
  9. public GameObject jilong;
  10. public int sid;
  11. public void setData(List<ServerVideoData> list,int id)
  12. {
  13. sid = id;
  14. jifang.GetComponent<seturl>().url(list[0].url);
  15. jilong.GetComponent<seturl>().url(list[1].url);
  16. }
  17. public static int csid;
  18. public void clickvideo()
  19. {
  20. Debug.Log("clickvideo=2=>" + sid);
  21. csid = sid;
  22. }
  23. }