void Update() { // Download any emotes we need cached for one of our messages if (_spriteDownloadQueue.Count > 0) { if (_spriteDownloadQueue.TryPop(out var spriteDownloadInfo)) { switch (spriteDownloadInfo.type) { case ImageType.BTTV_Animated: StartCoroutine(SpriteLoader.Download($"https://cdn.betterttv.net/emote/{spriteDownloadInfo.index.Substring(2)}/3x", spriteDownloadInfo)); break; } } } }
public void Awake() { UnityEngine.Object.DontDestroyOnLoad(this); Instance = this; }