private void OnDrawGizmos() { Transform[] children = PPPUtil.GetAllChildren(transform); for (int i = 0; i < children.Length - 1; i++) { Gizmos.color = new Color(0f, 255f, 0f); Gizmos.DrawLine(children[i].position, children[i + 1].position); } }
public Transform[] path; // Real path public void UpdatePath() { path = PPPUtil.GetAllChildren(transform); }