35 lines
		
	
	
		
			673 B
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			673 B
		
	
	
	
		
			C#
		
	
	
	
| using System.Collections;
 | |
| using System.Collections.Generic;
 | |
| using UnityEngine;
 | |
| 
 | |
| public class Flow_change : MonoBehaviour
 | |
| {
 | |
|     public bool 是否练习;
 | |
|     public GameObject 流程控制;
 | |
|     //public GameObject 模式切换;
 | |
| 
 | |
|     // Start is called before the first frame update
 | |
|     private void Awake()
 | |
|     {if (GameObject.Find("mode_change"))
 | |
|         {
 | |
|             bool mode = GameObject.Find("mode_change").GetComponent<mode_change>().练习模式;
 | |
|             是否练习 = mode;
 | |
|             Destroy(GameObject.Find("mode_change"));
 | |
|         }
 | |
|         else {
 | |
| 
 | |
| 
 | |
| 
 | |
|             是否练习 = true;
 | |
| 
 | |
| 
 | |
|         }
 | |
|     }
 | |
|     private void Start()
 | |
|     {
 | |
|         流程控制.SetActive(true);
 | |
|     }
 | |
|    
 | |
| 
 | |
| }
 |