void Update() { if (Application.isPlaying) { return; } instance = this; LoadSpriteSheet("HUD_Font", "Textures/HUD_Font"); }
void Awake() { if (!Application.isPlaying) { return; } if (instance == null) { instance = this; DontDestroyOnLoad(gameObject); LoadSpriteSheet("HUD_Font", "Textures/HUD_Font"); // literally always used- loading it at the start. } else { Destroy(gameObject); return; } }