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;
                }
            };
        }
Esempio n. 2
0
        public static Qos GetQos()
        {
            if (AccelBytePlugin.qos == null)
            {
                AccelBytePlugin.qos = new Qos(
                    new QosManagerApi(AccelBytePlugin.config.QosManagerServerUrl, AccelBytePlugin.httpWorker),
                    AccelBytePlugin.coroutineRunner);
            }

            return(AccelBytePlugin.qos);
        }
 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;
 }