コード例 #1
0
        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;
        }
コード例 #2
0
 public static bool IsEqual(string objectTag, GameTags gameTag)
 {
     return(objectTag.Equals(gameTag.ToString()));
 }
コード例 #3
0
 private bool ShouldUse()
 {
     return(m_shieldedMember.gameObject.tag.Equals(m_tagOnExhaust.ToString()));
 }