Files
RedHotRoast-ios/Assets/Scripts/ToolKit/GeneralKit.cs
T

25 lines
472 B
C#

using UObject = UnityEngine.Object;
namespace LoveLegend
{
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
}
}