Files
2026-05-28 15:23:36 +08:00

25 lines
470 B
C#

using UObject = UnityEngine.Object;
namespace ZooMatch
{
public static class GeneralKit
{
#region Engine
public static T Instantiate<T>(T original) where T : UObject
{
T obj = UObject.Instantiate(original);
return obj;
}
public static void Destroy(UObject obj)
{
if (obj)
{
UObject.Destroy(obj);
}
}
#endregion
}
}