Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma strict
- var Velocidade: Vector3;
- function Start () {
- }
- function Update () {
- Velocidade.x =0;
- Velocidade.y =0;
- Velocidade.z =0;
- if (Input.mousePosition.x<=5 || Input.mousePosition.x>=screen.width-5)
- {
- Velocidade.x = Input.GetAxis ("Mouse X")*10*Time.deltaTime;
- }
- if (Input.mousePosition.y<=5 || input.mousePosition.y>=screen.height-5)
- {
- Velocidade.z = Input.GetAxis("Mouse X")*10*Time.deltaTime;
- }
- transform.Translate(Velocidade);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement