static void SetCloudServiceEnabled(string setting, bool enable) { MethodInfo InternalSetCloudServiceEnabled = PlayerSettingsType.GetMethod( "SetCloudServiceEnabled", BindingFlags.NonPublic | BindingFlags.Static); if (InternalSetCloudServiceEnabled == null) { return; } InternalSetCloudServiceEnabled. Invoke(null, new object[] { setting, enable }); }
internal static void SetCloudProjectId(string projectId) { MethodInfo InternalSetCloudProjectId = PlayerSettingsType.GetMethod( "SetCloudProjectId", BindingFlags.NonPublic | BindingFlags.Static); if (InternalSetCloudProjectId == null) { Debug.LogWarning(PlasticLocalization.GetString( PlasticLocalization.Name.CannotWriteCloudProjectId)); return; } InternalSetCloudProjectId.Invoke( null, new object[] { projectId }); }
static void SetCloudProjectId(string projectId) { MethodInfo InternalSetCloudProjectId = PlayerSettingsType.GetMethod( "SetCloudProjectId", BindingFlags.NonPublic | BindingFlags.Static); if (InternalSetCloudProjectId == null) { Debug.LogWarning( "Cannot write cloudProjectId: " + "Method PlayerSettings.SetCloudProjectId not found"); return; } InternalSetCloudProjectId.Invoke( null, new object[] { projectId }); }