예제 #1
0
        public static void HideAlert()
        {
            SteamInvites steamInvites = UnityEngine.Object.FindObjectOfType <SteamInvites>();

            if (steamInvites == null)
            {
                return;
            }
            steamInvites.text.transform.parent.gameObject.SetActive(false);
        }
예제 #2
0
        public static void Alert(string msg)
        {
            SteamInvites steamInvites = UnityEngine.Object.FindObjectOfType <SteamInvites>();

            if (steamInvites == null)
            {
                return;
            }
            steamInvites.noButton.transform.parent.gameObject.SetActive(true);
            steamInvites.yesButton.transform.parent.gameObject.SetActive(false);
            steamInvites.text.transform.parent.gameObject.SetActive(true);
            steamInvites.text.GetComponent <TMPro.TextMeshProUGUI>().SetText(msg);
        }