20 lines
		
	
	
		
			486 B
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			486 B
		
	
	
	
		
			C#
		
	
	
	
| using System.Collections;
 | |
| using System.Collections.Generic;
 | |
| using UnityEngine;
 | |
| 
 | |
| public class Device_Sundries : Device_Base
 | |
| {
 | |
|     protected override void OnMDown()
 | |
|     {
 | |
|         if ((triggerAction == null ? 0 : triggerAction.Invoke(triggerName, true)) == 0)
 | |
|         {
 | |
|             base.OnMDown();
 | |
|             Debug.Log("清理柜子杂物");
 | |
|             gameObject.SetActive(false);
 | |
|             //triggerAction.Invoke(triggerName, false);
 | |
|             base.CallScoreAction();
 | |
|         }
 | |
| 
 | |
|     }
 | |
| }
 |