Second commit

This commit is contained in:
ThomasCharester committed 2026-09-20 15:26:03 +03:00
commit 36840f3ad4
999 files changed
+61364

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
using System;
using System.Threading;
using Cysharp.Threading.Tasks;
using UnityEngine;
using UnityEngine.AddressableAssets;
namespace Code.Infrastructure.UI
{
public abstract class UIPanel : MonoBehaviour, IDisposable
{
public UIPanelType PanelType { get; set; }
public abstract UniTask Open(CancellationToken cts = default);
public abstract UniTask Close(CancellationToken cts = default);
public void Dispose()
{
Addressables.ReleaseInstance(gameObject);
}
}
}