Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Login
Home
Popular
Topics
Gaming
Programming
Johnnnnnnn
Posts
Comments
C
C#
•
Created by novial on 8/19/2023 in
#help
❔ code simplification
Oops, I didn't notice that there's Children list in use that is not shown in the code... confusing for me that an an empty "children" list is passed in and itteration is done over a different "Children" list.
8 replies
C
C#
•
Created by novial on 8/19/2023 in
#help
❔ code simplification
Yes, it can be simplified into one line:
public Transform[] AllChildren => new Transform[0];
public Transform[] AllChildren => new Transform[0];
8 replies