22 lines
663 B
C#
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;
|
|
}
|
|
}
|
|
}
|