static AccelBytePlugin()
        {
#if UNITY_EDITOR // Handle an unexpected behaviour if Domain Reload (experimental) is disabled
            EditorApplication.playModeStateChanged += state =>
            {
                if (state == PlayModeStateChange.ExitingEditMode)
                {
                    hasBeenInitialized = false;

                    categories    = null;
                    items         = null;
                    orders        = null;
                    wallet        = null;
                    userProfiles  = null;
                    lobby         = null;
                    cloudStorage  = null;
                    gameProfiles  = null;
                    entitlement   = null;
                    statistic     = null;
                    qos           = null;
                    agreement     = null;
                    leaderboard   = null;
                    cloudSave     = null;
                    gameTelemetry = null;
                }
            };
        }
Ejemplo n.º 2
0
        public static UserProfiles GetUserProfiles()
        {
            if (AccelBytePlugin.userProfiles == null)
            {
                AccelBytePlugin.userProfiles = new UserProfiles(
                    new UserProfilesApi(AccelBytePlugin.config.BasicServerUrl, AccelBytePlugin.httpWorker),
                    AccelBytePlugin.user.Session,
                    AccelBytePlugin.config.Namespace,
                    AccelBytePlugin.coroutineRunner);
            }

            return(AccelBytePlugin.userProfiles);
        }
Ejemplo n.º 3
0
        public static UserProfiles GetUserProfiles()
        {
            if (AccelBytePlugin.userProfiles == null)
            {
                AccelBytePlugin.userProfiles = new UserProfiles(
                    AccelBytePlugin.Config.Namespace,
                    new UserProfilesApi(AccelBytePlugin.config.BasicServerUrl),
                    AccelBytePlugin.user,
                    AccelBytePlugin.taskDispatcher,
                    AccelBytePlugin.coroutineRunner);
            }

            return(AccelBytePlugin.userProfiles);
        }
 private static void ResetApis()
 {
     categories    = null;
     items         = null;
     orders        = null;
     wallet        = null;
     userProfiles  = null;
     lobby         = null;
     cloudStorage  = null;
     gameProfiles  = null;
     entitlement   = null;
     statistic     = null;
     qos           = null;
     agreement     = null;
     leaderboard   = null;
     cloudSave     = null;
     gameTelemetry = null;
     ugc           = null;
     seasonPass    = null;
     reward        = null;
 }