Removed Many Things

This commit is contained in:
CortexCore
2024-08-13 18:42:51 +08:00
parent c563c539a5
commit 79985ad6f5
1363 changed files with 5892 additions and 71512 deletions

View File

@@ -5,7 +5,6 @@ using System.IO;
using System.Security;
using System.Threading;
using BITKit.Apps;
using BITKit.HttpNet;
using Cysharp.Threading.Tasks;
using UnityEngine;
using UnityEngine.Events;
@@ -66,6 +65,7 @@ namespace BITKit
/// </summary>
public class ApplicationService : MonoBehaviour,IApplicationService
{
private static readonly HttpClient Client = new();
public static event Action<string> OnClientVersionCheck;
public static event Action<string> OnLatestVersionCheck;
public static event Action<string> OnDownloadLatest;
@@ -76,8 +76,6 @@ namespace BITKit
private IReference getVersionUrl;
[SerializeField, SerializeReference, SubclassSelector]
private IReference getLatestUrl;
[SerializeField, SerializeReference, SubclassSelector]
private WebProvider webProvider;
[SerializeReference, SubclassSelector] private ITicker checkTick;
[SerializeField] private bool dontDestroyOnLoad;
@@ -180,7 +178,7 @@ namespace BITKit
if(_isBusy)return;
try
{
var latestVersion = await webProvider.GetAsync(getVersionUrl.Get(), destroyCancellationToken);
var latestVersion = await Client.GetStringAsync(getVersionUrl.Value);
if (destroyCancellationToken.IsCancellationRequested) return;
var currentVersion = Application.version;