添加缺失插件
This commit is contained in:
38
Assets/Asset Usage Finder/Editor/Asr.cs
Normal file
38
Assets/Asset Usage Finder/Editor/Asr.cs
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user