public override bool IsSatisfied(GameObject obj, SkillInstance instance) { if (!m_IsIncludeBehitState) { BeHitState state = SkillDamageManager.GetBeHitState(obj); if (state != BeHitState.kStand) { return(false); } } float height = TriggerUtil.GetHeightWithGround(obj); if (m_IsJudgeFly && height >= m_Height) { return(true); } if (!m_IsJudgeFly && height <= m_Height) { return(true); } return(false); }
public override bool Execute(object sender, SkillInstance instance, long delta, long curSectionTime) { if (curSectionTime < m_StartTime) { return(true); } UnityEngine.GameObject obj = sender as UnityEngine.GameObject; if (obj == null) { return(false); } float height = TriggerUtil.GetHeightWithGround(obj); if (height <= m_GroundHeight) { instance.SendMessage(m_Message); return(false); } else { return(true); } }