// Private Method #region Private Method private void InitData() { playerRigidbody = GetComponent(typeof(Rigidbody2D)) as Rigidbody2D; if (playerAnimCtrl != null) { playerAnimCtrl.SetMarioSize(MarioSize.Child); } playerAnimCtrl.AnimEndEvent += AnimEndCall; jumpForce = 220f; runSpeed = 1.5f; counterForce = 50f; counterJumpForce = Vector2.down * counterForce; action = true; isGrounded = false; isJumping = false; DelayActiveFalse = new WaitForSeconds(DelayActiveFalseValue); }