using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
using UnityEngine.SceneManagement;
public class testclick : MonoBehaviour {
public Text admin_password;
public GameObject false_info;
public void Click(){
false_info.SetActive(false);
if(admin_password.text=="1234")
{
Debug.Log ("Button Clicked. TestClick."+admin_password.text);
SceneManager.LoadScene("scene2");
}
else{
Debug.Log("密码错误:"+admin_password.text);
false_info.SetActive(true);
}
}
}
想实现输入正确密码就能跳转到下一个画面,密码错误就输出“密码错误”的文字,但是现在的情况是“密码错误”的文字从
求解 不胜感激