mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Default to black frame if no path supplied for slide
This commit is contained in:
parent
d3e44d0e69
commit
13b714ac88
@ -403,6 +403,12 @@ namespace NewHorizons.Utility
|
|||||||
|
|
||||||
IEnumerator DownloadTexture(string url, int index)
|
IEnumerator DownloadTexture(string url, int index)
|
||||||
{
|
{
|
||||||
|
if (string.IsNullOrEmpty(url))
|
||||||
|
{
|
||||||
|
imageLoadedEvent?.Invoke(Texture2D.blackTexture, index);
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
|
||||||
lock(_loadedTextures)
|
lock(_loadedTextures)
|
||||||
{
|
{
|
||||||
if (_loadedTextures.ContainsKey(url))
|
if (_loadedTextures.ContainsKey(url))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user