Ejemplo n.º 1
0
 private void Update()
 {
     //Check for camera movement
     if (Input.GetKey(KeyCode.UpArrow) || Input.GetKey(KeyCode.W))
     {
         worldMapGlobe.DragTowards(Vector2.up);
     }
     if (Input.GetKey(KeyCode.DownArrow) || Input.GetKey(KeyCode.S))
     {
         worldMapGlobe.DragTowards(Vector2.down);
     }
     if (Input.GetKey(KeyCode.LeftArrow) || Input.GetKey(KeyCode.A))
     {
         worldMapGlobe.DragTowards(Vector2.left);
     }
     if (Input.GetKey(KeyCode.RightArrow) || Input.GetKey(KeyCode.D))
     {
         worldMapGlobe.DragTowards(Vector2.right);
     }
 }