protected void CheckAttackHitter() { if (m_AttackHitter == null || !m_AttackHitter.Actived) { return; } m_AttackHitter.HitDirection.x = Mathf.Abs(m_AttackHitter.HitDirection.x); m_AttackHitter.HitDirection.x = FacingRight ? m_AttackHitter.HitDirection.x : -m_AttackHitter.HitDirection.x; m_AttackHitter.CheckTargetHit(); }
protected void CheckContactHitter() { if (m_ContactHitter == null || !m_ContactHitter.Actived) { return; } m_ContactHitter.HitDirection = m_MoveVector; m_ContactHitter.HitDirection.x *= 2f; m_ContactHitter.HitDirection.y = 0.2f; m_ContactHitter.HitPower = 0.2f; m_ContactHitter.CheckTargetHit(); }