| 12345678910111213141516171819202122232425262728293031323334353637 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- //遮罩-认证登录时用到
- public class AuthLoginMask : MonoBehaviour
- {
- public static AuthLoginMask ins;
- void Awake()
- {
- ins = this;
- SetVisiable(false);
- }
- void OnDestroy()
- {
- if (ins == this) ins = null;
- }
- public bool IsVisiable() {
- return gameObject.activeSelf;
- }
- public void SetVisiable(bool visiable) {
- gameObject.SetActive(visiable);
- if (visiable) {
- GetComponentInChildren<Text>().text =
- TextAutoLanguage2.GetTextByKey("home_loginAuth");
- }
- }
- public void SetText(string text) {
- GetComponentInChildren<Text>().text = text;
- }
- }
|