添加缺失插件

This commit is contained in:
YXY
2026-03-03 18:24:17 +08:00
parent d43882c5cf
commit c979cd2a92
90 changed files with 5269 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
using System.Diagnostics;
using UnityEngine;
using UnityEngine.Assertions;
namespace AssetUsageFinder {
static class FLAGS {
public const string DEBUG = "DEBUG1"; //todo rename in release
}
static class Asr {
#line hidden
[Conditional(FLAGS.DEBUG)]
public static void AreEqual(int a, int b) {
Assert.AreEqual(a, b);
}
[Conditional(FLAGS.DEBUG)]
public static void IsTrue(bool b, string format = null) {
Assert.IsTrue(b, format);
}
[Conditional(FLAGS.DEBUG)]
public static void IsFalse(bool b, string format = null) {
Assert.IsFalse(b, format);
}
[Conditional(FLAGS.DEBUG)]
public static void Fail(string format = null) {
throw new AssertionException("Failed", format);
}
[Conditional(FLAGS.DEBUG)]
public static void IsNotNull(Object target, string str) {
Assert.IsNotNull(target, str);
}
#line default
}
}