private void SetAnimationStateFlag(eAnimationState in_flag, bool in_isOver) { if (in_isOver) { SetAnimationFlag(in_flag); } else { UnsetAnimationFlag(in_flag); } }
private void ToggleAnimationFlag(eAnimationState in_flag) { m_currentState = m_currentState ^ in_flag; }
private void UnsetAnimationFlag(eAnimationState in_flag) { m_currentState = m_currentState & (~in_flag); }
private void SetAnimationFlag(eAnimationState in_flag) { m_currentState = m_currentState | in_flag; }
// Works with "None" as well protected bool HasFlag(eAnimationState in_flag) { return((m_currentState & in_flag) == in_flag); }