55 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			55 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C#
		
	
	
	
| using Data;
 | ||
| using System;
 | ||
| using System.Collections;
 | ||
| using System.Collections.Generic;
 | ||
| using UnityEngine;
 | ||
| using UnityEngine.UI;
 | ||
| using Utility;
 | ||
| //============================================================
 | ||
| //支持中文,文件使用UTF-8编码
 | ||
| //@author	YangHua
 | ||
| //@create	20230913
 | ||
| //@company	QianHuo
 | ||
| //
 | ||
| //@description:
 | ||
| //============================================================
 | ||
| namespace Adam
 | ||
| {
 | ||
|     public class GoToSceneController : MonoBehaviour
 | ||
|     {
 | ||
|         public Button goToSceneBtn;
 | ||
|         public InputField userID;
 | ||
|         public GameObject GoToTheScenePlane;
 | ||
|         public Text request;
 | ||
|         // Use this for initialization
 | ||
|         private void Start()
 | ||
|         {
 | ||
|             userID.text = UIManager.Instance.messageData.scenename;
 | ||
|             goToSceneBtn.onClick.AddListener(OnGo);
 | ||
|         }
 | ||
| 
 | ||
|         public void OnGo()
 | ||
|         {
 | ||
|             if (UIManager.Instance.toolsItemManager.recoverBtn.gameObject.activeSelf)
 | ||
|             {
 | ||
|                 UIManager.Instance.toolsItemManager.recoverBtn.onClick?.Invoke();
 | ||
|             }
 | ||
|             UIManager.Instance.bottomCotroller.BirdEyeView.isOn = false;
 | ||
|             SceneLoad.Instance.isOnece = true;
 | ||
|             SceneLoad.Instance.MaskLoadInfoPanel();
 | ||
|             //ExamusersController.Instance.Init();
 | ||
|             string sceneInfo = userID.text;
 | ||
|             SwitchPanel();
 | ||
|             UIManager.Instance.backToToolBtn.gameObject.SetActive(true);
 | ||
|             UIManager.Instance.threeDTip.transform.parent.gameObject.SetActive(false);
 | ||
|             SceneLoad.Instance.SceneChange(sceneInfo);
 | ||
|         }
 | ||
| 
 | ||
|         public void SwitchPanel()
 | ||
|         {
 | ||
|             UIManager.Instance.threeDTip.transform.parent.gameObject.SetActive(false);
 | ||
|             GoToTheScenePlane.SetActive(false);
 | ||
|         }
 | ||
|     }
 | ||
| }
 |