Commit d689c27e authored by 18김민수's avatar 18김민수

Bug fix

parent fac22cad
...@@ -2059,7 +2059,7 @@ LineRenderer: ...@@ -2059,7 +2059,7 @@ LineRenderer:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 948598106} m_GameObject: {fileID: 948598106}
m_Enabled: 1 m_Enabled: 0
m_CastShadows: 1 m_CastShadows: 1
m_ReceiveShadows: 1 m_ReceiveShadows: 1
m_DynamicOccludee: 1 m_DynamicOccludee: 1
......
...@@ -59,7 +59,7 @@ public class PathRenderer : MonoBehaviour ...@@ -59,7 +59,7 @@ public class PathRenderer : MonoBehaviour
_pathRenderer.positionCount = 2; _pathRenderer.positionCount = 2;
square.pathList.Clear(); square.pathList.Clear();
square.pathList.Add(transform.position); square.pathList.Add(transform.position);
square.pathList.Add(new Vector3(0, 0, 0)); square.pathList.Add(transform.position);
_pathRenderer.SetPositions(square.pathList.ToArray()); _pathRenderer.SetPositions(square.pathList.ToArray());
for (int i = 0; i < transform.childCount; i++) for (int i = 0; i < transform.childCount; i++)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment