コード例 #1
0
        private Collider[] GetAllContent(List <Collider> Out = null)
        {
            if (Out == null)
            {
                Out = new List <Collider>();
            }

            if (Nodes.Any())
            {
                for (var i = 0; i < Nodes.Count; i++)
                {
                    Nodes[i].GetAllContent(Out);
                }
            }
            Out.AddRange(StuckChildren);
            Out.AddRange(Children);

            return(Out.ToArray());
        }