Musica Ingame
This commit is contained in:
parent
3d9aad6211
commit
39597cfdff
32 changed files with 866 additions and 283 deletions
|
@ -31,7 +31,7 @@ public class MovingPlatform : MonoBehaviour {
|
|||
yield return new WaitForFixedUpdate();
|
||||
transform.position = Vector3.MoveTowards(transform.position, _end, _speed * Time.deltaTime);
|
||||
|
||||
if (Math.Abs(transform.position.sqrMagnitude - _end.sqrMagnitude) < 0.05f) {
|
||||
if (((Vector2)transform.position - _end).sqrMagnitude < 0.05f) {
|
||||
_swapRoutine ??= StartCoroutine(SwapCoordinates());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue