private void ToggleSkill() { bool shouldUse = ShouldUse(); m_shieldedMember.gameObject.tag = shouldUse ? m_tagOnActive.ToString() : m_tagOnExhaust.ToString(); m_shieldFXMember.gameObject.SetActive(shouldUse); m_isActive = shouldUse; }
public static bool IsEqual(string objectTag, GameTags gameTag) { return(objectTag.Equals(gameTag.ToString())); }
private bool ShouldUse() { return(m_shieldedMember.gameObject.tag.Equals(m_tagOnExhaust.ToString())); }