23 lines
679 B
C#
23 lines
679 B
C#
using UnityEngine;
|
|
|
|
namespace Streamingle.Contents.BossRaid
|
|
{
|
|
/// <summary>
|
|
/// BossRaid 폰트를 Resources에서 로드합니다.
|
|
/// </summary>
|
|
public static class BossRaidFontLoader
|
|
{
|
|
private const string FontPath = "Font/neodgm";
|
|
private static Font _cachedFont;
|
|
|
|
public static Font Load()
|
|
{
|
|
if (_cachedFont != null) return _cachedFont;
|
|
_cachedFont = Resources.Load<Font>(FontPath);
|
|
if (_cachedFont == null)
|
|
Debug.LogWarning("[BossRaidFont] neodgm 폰트를 찾을 수 없습니다. 기본 폰트를 사용합니다.");
|
|
return _cachedFont;
|
|
}
|
|
}
|
|
}
|