El trayecto para llegar al país nipon, se hizo bastante largo, pues se mezclaron las ganas de llegar con las infernales escalas de los diferentes vuelos que tuve que tomar.
| Trayecto | Tiempo aproximado vuelo | Tiempo en aeropuerto aprox |
|---|---|---|
| Barcelona-Frankfurt | 2h y 30 mins | 1h y media |
| Frankfurt-Beijing | 11h-12h | 24h |
| Beijing-Tokyo | 3-4h | 1h |
La peor parte fue definitivamente estar en el aeropuerto de China un dia entero, encima sin salir de ahí dentro y sin ningun tipo de conexión a internet. Además cuando llegamos al aeropuerto de Tokyo tuvimos un problema con una maleta que nos tuvieron qu enviar al hotel el dia siguiente, ya que la maleta se habia quedado retenida en China.
Pues ya en el país del sol naciente fui a los siguientes lugares
- Tokyo
- Kanazawa
- Kioto
- Nara
- Tokyo (otra vez)
"Japón está muy guapo, todo el mundo tendria que ir y quiero volver ya." Luis Querol Valdés
public float movePlayerX;
public Rigidbody2D rbplayer;
public float speedPlayer = 3.0f;
public float jumpPlayerForce = 280.0f;
public bool isGrounded = true;
public float distanceRaycastPlayer = 0.55f;
public Animator animatorPlayer;
// Start is called before the first frame update
void Start()
{
rbplayer = GetComponent<Rigidbody2D>();
animatorPlayer = GetComponent<Animator>();
}
// Update is called once per frame
void Update()
{
movePlayerX = Input.GetAxis("Horizontal");
Debug.Log(movePlayerX);
if (movePlayerX < 0)
{
transform.localScale = new Vector3 (-2.862619f, 2.862619f, 2.862619f );
}
else if (movePlayerX > 0)
{
transform.localScale = new Vector3 (2.862619f, 2.862619f, 2.862619f );
}
if (Input.GetKeyDown(KeyCode.UpArrow) && isGrounded)
{
Jump();
}
if(Physics2D.Raycast(transform.position,Vector3.down,distanceRaycastPlayer))
{
isGrounded = true;
}
else
{
isGrounded = false;
}
Debug.DrawRay(transform.position, Vector3.down * distanceRaycastPlayer, Color.green);
//pone true en el bool isRunning del animator
if (movePlayerX !=0)
{
animatorPlayer.SetBool("isRunning", true);
}
else if (movePlayerX== 0)
{
animatorPlayer.SetBool("isRunning", false);
}
//prueba salto
if (!isGrounded)
{
animatorPlayer.SetBool("isJumping", true);
}
else if (isGrounded)
{
animatorPlayer.SetBool("isJumping", false);
}
}
/// <summary>
/// This function is called every fixed framerate frame, if the MonoBehaviour is enabled.
/// </summary>
void FixedUpdate()
{
rbplayer.velocity = new Vector2(movePlayerX*speedPlayer, rbplayer.velocity.y);
}
void Jump()
{
rbplayer.AddForce(Vector2.up * jumpPlayerForce);
}
