|
@@ -397,16 +397,21 @@ public class GCYWLayer : YZTRootLayer
|
|
|
UnityEngine.Vector3 prePos = UnityEngine.Vector3.zero;
|
|
|
for (int i = 0; i < taskPointIcons.Count; i++)
|
|
|
{
|
|
|
- if (i != 0) {
|
|
|
+ if (i != 0)
|
|
|
+ {
|
|
|
allDistance += UnityEngine.Vector3.Distance(taskPointIcons[i].transform.position, prePos);
|
|
|
}
|
|
|
-
|
|
|
+ else {
|
|
|
+ CameraManager.instance.mainCamera.GetComponent<CameraBird>().target.transform.position = taskPointIcons[i].transform.position;
|
|
|
+ }
|
|
|
taskPointLineRenderer.SetPosition(i, taskPointIcons[i].transform.position);
|
|
|
prePos = taskPointIcons[i].transform.position;
|
|
|
}
|
|
|
- taskPointLineRenderer.startWidth = allDistance / 10.0f;
|
|
|
- taskPointLineRenderer.endWidth = allDistance / 10.0f;
|
|
|
- taskPointLineRenderer.material.mainTextureScale = new Vector3(allDistance/2.0f,1);
|
|
|
+
|
|
|
+
|
|
|
+ //taskPointLineRenderer.startWidth = allDistance / 10.0f;
|
|
|
+ //taskPointLineRenderer.endWidth = allDistance / 10.0f;
|
|
|
+ //taskPointLineRenderer.material.mainTextureScale = new Vector3(allDistance/2.0f,1);
|
|
|
}
|
|
|
|
|
|
public void SetTaskPointIconHeightLight(int index)
|