20 lines
445 B
C#
20 lines
445 B
C#
//$ Copyright 2015-22, Code Respawn Technologies Pvt Ltd - All Rights Reserved $//
|
|
using UnityEngine;
|
|
|
|
namespace DungeonArchitect.Utils
|
|
{
|
|
public class ObjectUtils
|
|
{
|
|
public static void DestroyObject(Object go)
|
|
{
|
|
if (Application.isPlaying)
|
|
{
|
|
Object.Destroy(go);
|
|
}
|
|
else
|
|
{
|
|
Object.DestroyImmediate(go);
|
|
}
|
|
}
|
|
}
|
|
} |