void Voando() { if (Input.GetKey(KeyCode.W)) { pendulo.player.velocity += pendulo.player.velocity.normalized * 2; } transform.localPosition = pendulo.MovePlayer(transform.localPosition, previousPosition, Time.deltaTime); previousPosition = transform.localPosition; }
void Update() { transform.localPosition = pendulo.MovePlayer(transform.localPosition, Time.deltaTime); }