// Start is called before the first frame update
 protected override void OnStart()
 {
     rb     = this.GetComponent <FPRigidBody2D>();
     sprite = this.transform.GetChild(0).GetComponent <SpriteRenderer>();
     this.transform.GetChild(1).GetComponent <TriggerChecker>().trigger += ((para) => SetGrounded(para));
     wallJumpChecker = this.transform.GetChild(2).GetComponent <TriggerCheckerVal>();
     // rb.SetVelocity(condition.GetVelocity() * Time.fixedDeltaTime);
     //  condition.SetVelocity(rb.velocity);
 }
 public FPRaycastHit2D(FPCollider2D collider)
 {
     this.collider  = collider;
     this.rigidbody = collider.GetComponent <FPRigidBody2D>();
     this.transform = collider.GetComponent <FPTransform2D>();
 }