17 lines
430 B
C#
17 lines
430 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using FlowScope.Resources;
|
|
using UnityEngine;
|
|
|
|
namespace FlowScope.UI
|
|
{
|
|
public interface IUIPreloadService
|
|
{
|
|
Task PreloadAsync<TPanel>(CancellationToken cancellationToken);
|
|
bool IsPreloaded<TPanel>();
|
|
bool TryGetPreloadedHandle<TPanel>(out IResourceHandle<GameObject> handle);
|
|
void Release<TPanel>();
|
|
void ReleaseAll();
|
|
}
|
|
}
|