using System.Collections; using System.Collections.Generic; using UnityEngine; namespace HuaweiAuthDemo { public class LoginInstatus : MonoBehaviour { // Start is called before the first frame update [SerializeField] private GameObject loginButton; public GameObject LoginButton { get { return loginButton; } private set { loginButton = value; } } [SerializeField] private GameObject accountButton; public GameObject AccountButton { get { return accountButton; } private set { accountButton = value; } } public void OnLogin() { LoginButton.GetComponent().enabled = false; AccountButton.GetComponent().enabled = true; } public void OnLogout() { LoginButton.GetComponent().enabled = true; AccountButton.GetComponent().enabled = false; } } }