Skip to content
Snippets Groups Projects
Commit ed17fd77 authored by LAMINO-HARO FERNANDO-JOEL's avatar LAMINO-HARO FERNANDO-JOEL
Browse files

Merge branch 'fix/pawn-lurping-issue' into 'dev'

(fix: app) pawn lerping issue

See merge request !30
parents 0ee05957 677b61fa
1 merge request!30(fix: app) pawn lerping issue
......@@ -66,7 +66,7 @@ public class Pion : MonoBehaviour
{
//methode gliseé le pion ver sa origine
Transform _trans = c_o.get_posotion();
while (transform.position != _trans.position)
while (transform.position.y != _trans.position.y && transform.position.x != _trans.position.x)
{
Vector3 targetPosition = new Vector3(_trans.position.x, _trans.position.y, -0.3f);
transform.position = Vector3.MoveTowards(transform.position, targetPosition, moveSpeed * Time.deltaTime);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment