|
@@ -259,6 +259,7 @@ public class RKZYLayer : YZTRootLayer
|
|
startSign.SetParent(pathSign);
|
|
startSign.SetParent(pathSign);
|
|
startSign.transform.localScale = Vector3.one;
|
|
startSign.transform.localScale = Vector3.one;
|
|
startSign.GetComponent<PathSign>().bindObj = linePath.gameObject;
|
|
startSign.GetComponent<PathSign>().bindObj = linePath.gameObject;
|
|
|
|
+ startSign.GetComponent<PathSign>().bindPos = worldPos;
|
|
}
|
|
}
|
|
if (j == GlobalData.allServerMovePlans[i].paths.Count - 2)
|
|
if (j == GlobalData.allServerMovePlans[i].paths.Count - 2)
|
|
{
|
|
{
|
|
@@ -266,6 +267,7 @@ public class RKZYLayer : YZTRootLayer
|
|
endSign.SetParent(pathSign);
|
|
endSign.SetParent(pathSign);
|
|
endSign.transform.localScale = Vector3.one;
|
|
endSign.transform.localScale = Vector3.one;
|
|
endSign.GetComponent<PathSign>().bindObj = linePath.gameObject;
|
|
endSign.GetComponent<PathSign>().bindObj = linePath.gameObject;
|
|
|
|
+ endSign.GetComponent<PathSign>().bindPos = worldPos1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
lineParent.startPos = GlobalData.allServerMovePlans[i].from;
|
|
lineParent.startPos = GlobalData.allServerMovePlans[i].from;
|
|
@@ -320,6 +322,7 @@ public class RKZYLayer : YZTRootLayer
|
|
startSign.SetParent(pathSign);
|
|
startSign.SetParent(pathSign);
|
|
startSign.transform.localScale = Vector3.one;
|
|
startSign.transform.localScale = Vector3.one;
|
|
startSign.GetComponent<PathSign>().bindObj = linePath.gameObject;
|
|
startSign.GetComponent<PathSign>().bindObj = linePath.gameObject;
|
|
|
|
+ startSign.GetComponent<PathSign>().bindPos = worldPos;
|
|
}
|
|
}
|
|
if (j == GlobalData.allServerMovePlans[i].paths.Count - 2)
|
|
if (j == GlobalData.allServerMovePlans[i].paths.Count - 2)
|
|
{
|
|
{
|
|
@@ -327,6 +330,7 @@ public class RKZYLayer : YZTRootLayer
|
|
endSign.SetParent(pathSign);
|
|
endSign.SetParent(pathSign);
|
|
endSign.transform.localScale = Vector3.one;
|
|
endSign.transform.localScale = Vector3.one;
|
|
endSign.GetComponent<PathSign>().bindObj = linePath.gameObject;
|
|
endSign.GetComponent<PathSign>().bindObj = linePath.gameObject;
|
|
|
|
+ endSign.GetComponent<PathSign>().bindPos = worldPos1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
lineParent.startPos = GlobalData.allServerMovePlans[i].from;
|
|
lineParent.startPos = GlobalData.allServerMovePlans[i].from;
|