Fixed second scene
This commit is contained in:
@@ -46,7 +46,7 @@ namespace Platforms
|
||||
{
|
||||
var position = transform.position;
|
||||
var targetPosition = new Vector3(position.x + xOffeset, position.y + yOffset, 0.0f);
|
||||
position = Vector3.SmoothDamp(position, targetPosition, ref _velocity, 1.0f);
|
||||
position = Vector3.SmoothDamp(position, targetPosition, ref _velocity, 1.0f, 1.0f);
|
||||
transform.position = position;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user