PD
Size: a a a
PD
PD
public class LoginScreen : MonoBehaviour {
public bool showwtext = false;
....
else if (blocked == "b") {
showwtext = true;
wtext = "Blocked";
Debug.Log("Blocked");
}
void OnGUI()
{
if(showwtext == true)
{
GUI.Label(new Rect(Screen.width / 2 - 50, Screen.height / 2 - 25, 100, 50), wtext.ToString());
}
}
}СХ
else if (blocked == "b") {
showwtext = true;
wtext = "Blocked";
Debug.Log("Blocked");
}void OnGUI()
{
GUI.Label(new Rect(Screen.width / 2 - 50, Screen.height / 2 - 25, 100, 50), wtext.ToString());
}
PD
else if (blocked == "b") {
showwtext = true;
wtext = "Blocked";
Debug.Log("Blocked");
}void OnGUI()
{
GUI.Label(new Rect(Screen.width / 2 - 50, Screen.height / 2 - 25, 100, 50), wtext.ToString());
}
СХ
PD
[SerializeField] private UnityEngine.UI.Text _text = default;
else if (blocked == "b")
{
_text.text = "Blocked";
}
AD
[SerializeField] private UnityEngine.UI.Text _text = default;
else if (blocked == "b")
{
_text.text = "Blocked";
}
Т

К🇦
M
M


Т
M
M
PD
PD
M
M
M
IG
