ShanxiKnowledgeBase/SXElectricalInspection/Assets/Script/Flow/Flow_change.cs

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);
}
}