Files
test/Assets/PerfectWorld/Scripts/Addressable/GameContentBootstrapSession.cs
2026-05-21 17:42:02 +07:00

22 lines
663 B
C#

namespace BrewMonster.Scripts
{
/// <summary>
/// Trạng thái phiên sau khi scene <c>GameContentBootstrap</c> hoàn tất (Addressables + catalog/bulk nếu cần).
/// Scene game (<c>Bootstrap</c>) đọc flag này — không cần component <see cref="GameContentBootstrap"/> trong scene đó.
/// </summary>
public static class GameContentBootstrapSession
{
public static bool IsContentReady { get; private set; }
public static void MarkContentReady()
{
IsContentReady = true;
}
public static void ResetForNewRun()
{
IsContentReady = false;
}
}
}