// Token: 0x06000598 RID: 1432 RVA: 0x0002FCB4 File Offset: 0x0002DEB4 public void ShowBiomeFoundMsg(string text, bool playStinger) { MessageHud.BiomeMessage biomeMessage = new MessageHud.BiomeMessage(); biomeMessage.m_text = text; biomeMessage.m_playStinger = playStinger; this.m_biomeFoundQueue.Enqueue(biomeMessage); }
// Token: 0x06000597 RID: 1431 RVA: 0x0002FBB0 File Offset: 0x0002DDB0 private void UpdateBiomeFound(float dt) { if (this.m_biomeMsgInstance != null && this.m_biomeMsgInstance.GetComponentInChildren <Animator>().GetCurrentAnimatorStateInfo(0).IsTag("done")) { UnityEngine.Object.Destroy(this.m_biomeMsgInstance); this.m_biomeMsgInstance = null; } if (this.m_biomeFoundQueue.Count > 0 && this.m_biomeMsgInstance == null && this.m_msgQeue.Count == 0 && this.m_msgQueueTimer > 2f) { MessageHud.BiomeMessage biomeMessage = this.m_biomeFoundQueue.Dequeue(); this.m_biomeMsgInstance = UnityEngine.Object.Instantiate <GameObject>(this.m_biomeFoundPrefab, base.transform); Text component = Utils.FindChild(this.m_biomeMsgInstance.transform, "Title").GetComponent <Text>(); string text = Localization.instance.Localize(biomeMessage.m_text); component.text = text; if (biomeMessage.m_playStinger && this.m_biomeFoundStinger) { UnityEngine.Object.Instantiate <GameObject>(this.m_biomeFoundStinger); } } }