|
@@ -305,7 +305,7 @@ namespace GFGGame
|
|
|
|
|
|
if (!_equipDistance.ContainsKey(gameObject))
|
|
|
{
|
|
|
- float distance = Vector2.Distance(pt, pt2);/// gameObject.transform.localScale.x;
|
|
|
+ float distance = Vector2.Distance(pt, pt2) / gameObject.transform.localScale.x;
|
|
|
_equipDistance.Add(gameObject, distance);
|
|
|
}
|
|
|
_startDistance = _equipDistance[gameObject];
|