Made children spawn

This commit is contained in:
Pasha Bibko
2026-01-13 10:23:50 +00:00
parent d54a99874f
commit 8b648fd690
17 changed files with 441 additions and 9 deletions

View File

@@ -0,0 +1,33 @@
using System.Runtime.CompilerServices;
using JetBrains.Annotations;
using Unity.VisualScripting;
namespace InterfaceOff
{
public class DebugUtils
{
[MethodImpl(MethodImplOptions.AggressiveInlining), AssertionMethod, ContractAnnotation("null => true")]
public static bool IsNull(UnityEngine.Object obj)
{
return obj.IsUnityNull();
}
[MethodImpl(MethodImplOptions.AggressiveInlining), AssertionMethod, ContractAnnotation("null => true")]
public static bool IsNull(object obj)
{
return obj == null;
}
[MethodImpl(MethodImplOptions.AggressiveInlining), AssertionMethod, ContractAnnotation("null => false")]
public static bool IsNotNull(UnityEngine.Object obj)
{
return !obj.IsUnityNull();
}
[MethodImpl(MethodImplOptions.AggressiveInlining), AssertionMethod, ContractAnnotation("null => true")]
public static bool IsNotNull(object obj)
{
return obj != null;
}
}
}