public override void Kick(PhysicsObject target) { if(m_kickTime>0)return; if (target.GetExtents().min.x-GetComponent<Collider2D>().bounds.max.x > HitRange) { PushForward(0.5f); } else { HitInfo info = new HitInfo(); info.hitEnergy = m_kickEnergy; target.OnHit(info); rigidbody2D.velocity = -transform.right.normalized; m_kickTime = m_kickCooldown; } }