Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
    public Transform[] path; // Real path

    public void UpdatePath()
    {
        path = PPPUtil.GetAllChildren(transform);
    }