Convert unity javascript (unityscript) to C#

NOTICE: A greatly improved (and Unity-integrated) version of this script is available on the Unity Asset Store under "Extensions"!Converted result:You are using Array 1 times, C# doesn't support Array. You could use ArrayList instead.Don't forget to rename your class (See MYCLASSNAME)