using System.Collections;
using System.Collections.Generic;
public class PlayerController : MonoBehaviour
destino = transform.position;
if (Input.GetKey (KeyCode.D))
destino += transform.right;
else if (Input.GetKey (KeyCode.A))
destino += transform.right * -1f;
else if (Input.GetKey (KeyCode.W))
else if (Input.GetKey (KeyCode.S))
destino += transform.up * -1f;
transform.position = Vector3.MoveTowards (transform.position, destino, suavizacao * Time.deltaTime);
float distancia = Vector3.Distance (transform.position, destino);