27 lines
		
	
	
		
			509 B
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			509 B
		
	
	
	
		
			C#
		
	
	
	
| using System.Collections;
 | |
| using System.Collections.Generic;
 | |
| using UnityEngine;
 | |
| using UnityEngine.UI;
 | |
| public class interGameobjectcheck : FlowInterObjectBase
 | |
| {
 | |
|     public GameObject[] 交互;
 | |
| 
 | |
|     // Start is called before the first frame update
 | |
| 
 | |
|     private void Start()
 | |
|     {
 | |
|         for (int i = 0; i < 交互.Length; i++)
 | |
|         {
 | |
|             EventTriggerListener.Get(交互[i]).onClick += g => { onclick(); };
 | |
|         }
 | |
|       
 | |
|     }
 | |
|     public void onclick() {
 | |
| 
 | |
|         交互完成 = true;
 | |
|     
 | |
|     
 | |
|     
 | |
|     }
 | |
| }
 |