using PhxhSDK; using UnityEngine; namespace Gameplay.Area { public class BuffCellNotice { public int cellIndex; public string loadPath; public GameObject noticeObj { get; private set; } public async void CreateView(Transform parent) { var sampleObj = await AssetManager.Instance.LoadAssetAsync(loadPath); if (sampleObj == null) { return; } noticeObj = Object.Instantiate(sampleObj, parent); var worldPos = AreaManager.instance.GetCellPosByIndex(cellIndex); noticeObj.transform.position = worldPos; } public void Dispose() { Object.Destroy(noticeObj); noticeObj = null; AssetManager.Instance.Unload(loadPath); } } }