/// <summary> /// 检查标记是否存在 /// </summary> /// <param name="mark"></param> /// <returns></returns> public bool CheckActionMark(DamageResultMark mark) { if (m_DamageActionMark == DamageResultMark.None || mark == DamageResultMark.None) { return(false); } return((m_DamageActionMark & mark) == mark); }
void AddResultMark(DamageResultMark mark) { if (m_Lock) { Debug.LogError("非法修改Damage!"); } if (!m_Lock && mark != DamageResultMark.None && !CheckActionMark(mark)) { m_DamageActionMark |= mark; } }