12 lines
255 B
C#
12 lines
255 B
C#
|
|
using System.Collections;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using UnityEngine;
|
||
|
|
using UnityEngine.AddressableAssets;
|
||
|
|
|
||
|
|
public class AddressableReleaseSelf : MonoBehaviour
|
||
|
|
{
|
||
|
|
void OnDestroy()
|
||
|
|
{
|
||
|
|
Addressables.ReleaseInstance(gameObject);
|
||
|
|
}
|
||
|
|
}
|