Пример #1
0
 public static void RegisterGuest()
 {
     //偷偷的注册一下
     if (null == PlayerPrefTool.GetUsername(ENUM_LOGIN_TYPE.E_GUEST))
     {
         MessageHandler.RegisterMessageHandler(MessageDefine.SCRegGuestResponse, OnScResponse);
         LoginUtil.RequestRegisterGuest();
     }
 }
        private void OnInitCompleteWithGuestReg()
        {
            Debug.Log("FACEBOOK : OnInitCompleteWithGuestReg");

#if UNITY_EDITOR || !UNITY_STANDALONE_WIN
            if (!FB.IsInitialized)
            {
                return;
            }
#endif
            LoginUtil.RequestRegisterGuest();
        }