32 lines
		
	
	
		
			500 B
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			500 B
		
	
	
	
		
			C#
		
	
	
	
| using System.Collections;
 | |
| using System.Collections.Generic;
 | |
| using UnityEngine;
 | |
| 
 | |
| public class interAreacheck : FlowInterObjectBase
 | |
| {
 | |
|     public string otherName;
 | |
|     // Start is called before the first frame update
 | |
| 
 | |
|     private void OnTriggerEnter(Collider other)
 | |
|     {
 | |
|         Debug.Log("触发");
 | |
|         if (first == true)
 | |
|         { if (other.name == otherName)
 | |
|             {
 | |
| 
 | |
| 
 | |
|                 交互完成 = true;
 | |
|             
 | |
|             
 | |
|             
 | |
|             
 | |
|             }
 | |
| 
 | |
|         }
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
|     }
 | |
| }
 |