using System.Collections; using UnityEngine; namespace GFGGame { public class AssetReleaser : MonoBehaviour { public string resPath; private void OnDestroy() { if(!string.IsNullOrEmpty(resPath)) { GFGAsset.Release(resPath); } } } }