facing dir
This commit is contained in:
parent
bb69b3b52e
commit
2e2513d5c6
|
@ -53,6 +53,7 @@ public class WaypointPath : MonoBehaviour
|
||||||
float minDist = Math.Min(dist, data.MoveSpeed * Time.deltaTime);
|
float minDist = Math.Min(dist, data.MoveSpeed * Time.deltaTime);
|
||||||
|
|
||||||
data.Entity.position += normTargetDir * minDist;
|
data.Entity.position += normTargetDir * minDist;
|
||||||
|
data.Entity.right = -normTargetDir;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue