public string GetCurrentSpriteState() { if (m_AbilityManager != null) { if (m_AbilityManager.GetCurrentModule() != null) { return(m_AbilityManager.GetCurrentModule().GetSpriteState()); } } return(GetCurrentSpriteStateForDefault()); }
void FixedUpdate() { if (m_AbilityModuleManager != null) { AbilityModule module = m_AbilityModuleManager.GetCurrentModule(); if (module != null) { m_TextMesh.text = module.GetName(); } else { m_TextMesh.text = "Default"; } } }