mirror of
https://github.com/0x7c13/Pal3.Unity.git
synced 2026-11-27 18:08:09 +08:00
18 lines
599 B
C#
18 lines
599 B
C#
// ---------------------------------------------------------------------------------------------
|
|
// Copyright (c) 2021-2023, Jiaqi Liu. All rights reserved.
|
|
// See LICENSE file in the project root for license information.
|
|
// ---------------------------------------------------------------------------------------------
|
|
|
|
namespace Core.Extensions
|
|
{
|
|
public static class UnityObjectExtensions
|
|
{
|
|
public static void Destroy(this UnityEngine.Object obj)
|
|
{
|
|
if (obj != null)
|
|
{
|
|
UnityEngine.Object.Destroy(obj);
|
|
}
|
|
}
|
|
}
|
|
} |