- Home /
Question by
AGBMX17 · May 29, 2014 at 11:21 AM ·
gameobjectlistboo
Create a null GameObject List using Boo
Hi everyone!!
I really annoying because I can't find the correct form to create a null GameObject List using Boo. I know that this thing using C# is:
public GameObject[] obj;
I try diferents forms to get the sem answer in Boo, but nothing is correctly.
Can you show me how I can write this code using Boo?
Thanks!
Comment
Answer by Evil-Lemons · Jun 03, 2014 at 11:22 PM
If you didn't figure it out already, I'm pretty sure it is this (For arrays):
public obj as (GameObject)
First, you declare the name of the array. Then, like setting a variable, declare the type. The only difference is that the type has to be wrapped in parentheses. Why? Arrays in boo have the following syntax:
obj = (x, y, z)
The parentheses signal the array. Hope this helps!