Beispiel #1
0
        public VRCUiPage GetPage(string path)
        {
            GameObject gameObject = GameObject.Find(path);
            VRCUiPage  vrcuiPage  = null;

            if (gameObject != null)
            {
                vrcuiPage = gameObject.GetComponent <VRCUiPage>();
                if (vrcuiPage == null)
                {
                    UnityEngine.Debug.LogError(new Il2CppSystem.Object(IL2CPP.StringToIntPtr("Screen Not Found - " + path)));
                }
            }
            else
            {
                UnityEngine.Debug.LogWarning(new Il2CppSystem.Object(IL2CPP.StringToIntPtr("Screen Not Found - " + path)));
            }
            return(vrcuiPage);
        }