|
@@ -41,7 +41,7 @@ public class LinePathUnit : MonoBehaviour
|
|
|
angle = 360 - angle;
|
|
|
}
|
|
|
//print(angle);
|
|
|
- float distance = Vector3.Distance(end, start);
|
|
|
+ float distance = Vector3.Distance(end, start) * 1.02f;
|
|
|
this.transform.localScale = new Vector3(1, distance / 2, 1);
|
|
|
this.transform.eulerAngles = new Vector3(1, 1, -angle);
|
|
|
|
|
@@ -58,8 +58,8 @@ public class LinePathUnit : MonoBehaviour
|
|
|
{
|
|
|
if (CameraManager.instance.secondCamera != null)
|
|
|
{
|
|
|
- float dyScale = CameraManager.instance.secondCamera.GetComponent<CameraBirdSec>().currentDistance / 12;
|
|
|
- dyScale = math.clamp(dyScale, 1, 6);
|
|
|
+ float dyScale = CameraManager.instance.secondCamera.GetComponent<CameraBirdSec>().currentDistance / 14;
|
|
|
+ dyScale = math.clamp(dyScale, 0.5f, 5f);
|
|
|
this.transform.localScale = new Vector3(dyScale, this.transform.localScale.y, dyScale);
|
|
|
this.lineRenderer.GetComponent<MeshRenderer>().material.SetTextureScale("_MainTex", new Vector2(1, this.transform.localScale.y * 10 / this.transform.localScale.x));
|
|
|
}
|