Skip to content

Commit

Permalink
Update speed on map
Browse files Browse the repository at this point in the history
  • Loading branch information
AapoLempio committed Jan 9, 2018
1 parent c11dbb1 commit e5d237a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Player/Scripts/MapCameraController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void ChangePosition(float lon, float lat)
Vector3 newPos = map.MapPositionAt(lon, lat);
Vector3 direction = newPos - transform.position;
playerTransform.rotation = Quaternion.LookRotation(direction, Vector3.up);
StartCoroutine(MovePlayer(newPos, 2f));
StartCoroutine(MovePlayer(newPos, 1f));
}

public void Move(Vector3 direction)
Expand Down

0 comments on commit e5d237a

Please sign in to comment.