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; } }; }
public static Entitlement GetEntitlements() { if (AccelBytePlugin.entitlements == null) { AccelBytePlugin.entitlements = new Entitlement( new EntitlementApi(AccelBytePlugin.config.PlatformServerUrl, AccelBytePlugin.httpWorker), AccelBytePlugin.user.Session, AccelBytePlugin.config.Namespace, AccelBytePlugin.coroutineRunner); } return(AccelBytePlugin.entitlements); }
public static Entitlement GetEntitlement() { if (AccelBytePlugin.entitlement == null) { CheckPlugin(); AccelBytePlugin.entitlement = new Entitlement( new EntitlementApi(AccelBytePlugin.config.PlatformServerUrl, AccelBytePlugin.httpClient), AccelBytePlugin.user.Session, AccelBytePlugin.config.Namespace, AccelBytePlugin.coroutineRunner); } return(AccelBytePlugin.entitlement); }
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; }