Optimize berry handling
This commit is contained in:
5 files changed
+77
-31
No files matched your search
@@ -166,12 +166,4 @@ public static class Tools {
|
||||
BazookaManager.Instance.GetAccountID() ?? 0
|
||||
);
|
||||
}
|
||||
|
||||
public static GameObject[] GetAllBerries(Transform berryParent) {
|
||||
GameObject[] children = new GameObject[berryParent.childCount];
|
||||
for (int i = 0; i < berryParent.childCount; i++) {
|
||||
children[i] = berryParent.GetChild(i).gameObject;
|
||||
}
|
||||
return children;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user