Ejemplo n.º 1
0
 void Update()
 {
     if (Input.GetKeyUp("up"))
     {
         rob_mov.MoveForward();
     }
     if (Input.GetKeyUp("left"))
     {
         rob_mov.RotateRobot(false);
     }
     if (Input.GetKeyUp("right"))
     {
         rob_mov.RotateRobot(true);
     }
     if (Input.GetKeyUp("e"))
     {
         rob_mov.FireRocket();
     }
 }