void TextUpdate() { if (m_HookText) { m_HookText.color = m_HookColor; if (m_Player.GetIsHookReady()) { m_HookColor = Color.green; m_HookText.text = "Hook Ready"; } else { m_HookColor = Color.red; m_HookText.text = m_Player.GetCooldowns()[0].ToString("F1"); } } if (m_RemainingText) { if (m_Player.IsInCombatArea()) { m_RemainingText.text = "Enemies remaining: " + m_SceneController.GetRemainingEnemies(); } else { m_RemainingText.text = ""; } } if (m_IsCharacterPanel) { if (m_EssenceRText) { m_EssenceRText.text = m_Inventory.GetEssence(EssenceType.Red).ToString(); } if (m_EssenceBText) { m_EssenceBText.text = m_Inventory.GetEssence(EssenceType.Blue).ToString(); } if (m_EssenceGText) { m_EssenceGText.text = m_Inventory.GetEssence(EssenceType.Green).ToString(); } if (m_StatText) { m_StatText.text = "Health: " + m_Stats.GetHealth() + "/" + m_Stats.GetMaxHealth() + "\n" + "Damage: " + m_Stats.GetMinDamage() + "-" + m_Stats.GetMaxDamage() + "\n" + "Attack Speed: " + m_Stats.GetAttackSpeed().ToString("F2"); } } }