Remove legacy call helper.

This commit is contained in:
2023-11-23 13:46:00 +08:00
parent cbe94e6308
commit 155ce0bb22
3 changed files with 3 additions and 42 deletions

View File

@@ -1,26 +0,0 @@
using System;
using UnityEngine;
namespace Cryville.Common.Unity {
static class CallHelper {
public static bool HasFlag(this Enum obj, Enum flag) {
ulong num = Convert.ToUInt64(flag);
ulong num2 = Convert.ToUInt64(obj);
return (num2 & num) == num;
}
public static void Purge(Transform obj) {
foreach (Transform i in obj)
GameObject.Destroy(i.gameObject);
}
/*public static void DownloadAndUnzip(string url, FileInfo file) {
using (DownloadDialog d = new DownloadDialog()) {
d.Download(url, file);
}
using (ZipFile z = new ZipFile(file.FullName)) {
z.ExtractAll(file.DirectoryName, ExtractExistingFileAction.OverwriteSilently);
}
}*/
}
}

View File

@@ -1,12 +0,0 @@
fileFormatVersion: 2
guid: 98b3d4b7cc1ce054598780159356da35
timeCreated: 1608801352
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: