37 lines
		
	
	
		
			632 B
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			632 B
		
	
	
	
		
			C#
		
	
	
	
| using System.Collections;
 | |
| using System.Collections.Generic;
 | |
| using UnityEngine;
 | |
| 
 | |
| /// <summary>
 | |
| /// 封印
 | |
| /// </summary>
 | |
| public class Device_Seal : Device_Base
 | |
| {
 | |
|     /// <summary>
 | |
|     /// 是否被剪开
 | |
|     /// </summary>
 | |
|     public bool isCut;
 | |
|     /// <summary>
 | |
|     /// 被剪的位置
 | |
|     /// </summary>
 | |
|     public Transform testPosAndRot;
 | |
| 
 | |
|     /// <summary>
 | |
|     /// 剪开封印
 | |
|     /// </summary>
 | |
|     public void Cut()
 | |
|     {
 | |
|         isCut = true;
 | |
|         gameObject.SetActive(false);
 | |
|     }
 | |
| 
 | |
|     /// <summary>
 | |
|     /// 安装封印
 | |
|     /// </summary>
 | |
|     public void Install()
 | |
|     {
 | |
|         isCut = false;
 | |
|         gameObject.SetActive(true);
 | |
|     }
 | |
| }
 |