38 lines
		
	
	
		
			1002 B
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			1002 B
		
	
	
	
		
			C#
		
	
	
	
| using System;
 | |
| using System.Collections;
 | |
| using System.Collections.Generic;
 | |
| using System.Linq;
 | |
| using TMPro;
 | |
| using Unity.VisualScripting;
 | |
| using UnityEngine;
 | |
| using UnityEngine.UI;
 | |
| 
 | |
| public class LocalVideoAlarmItem : MonoBehaviour
 | |
| {
 | |
|     public TextMeshProUGUI textMeshPro_object;
 | |
|     public TextMeshProUGUI textMeshPro_time;
 | |
|     public List<Sprite> sprites = new List<Sprite>();
 | |
|     public Button button_view;
 | |
|     public GameObject image_view;
 | |
| 
 | |
|     // Start is called before the first frame update
 | |
|     void Start()
 | |
|     {
 | |
|         button_view.onClick.AddListener(() =>
 | |
|         {
 | |
|             image_view.gameObject.SetActive(true);
 | |
|             var l = (LocalVideo.Inst.clickEventLens).SelectMany(x => x.GetComponentsInChildren<LocalVideoAlarmUI>(true)).ToList();
 | |
|             for (int i = 0; i < l.Count; i++)
 | |
|             {
 | |
|                 l[i].canvas./*transform.GetChild(0).*/gameObject.SetActive(false);
 | |
|             }
 | |
|         });
 | |
|     }
 | |
| 
 | |
|     // Update is called once per frame
 | |
|     void Update()
 | |
|     {
 | |
| 
 | |
|     }
 | |
| }
 |