hi all…
i have come up with this error when im converting C# to JavaScript…
the C# is fine… only in the JavaScript have the problem…
i have 3 errors…
-
BCE0048 : Type ‘UnityEngine.GameObject’ does not support slicing.
-
BCE0067 : There is already a local variable with the name ‘i’.
-
BCE0019 : ‘Length’ is not a member of ‘UnityEngine.GameObject’.
here’s the script…
DirectionX = 0;
for(var i : int = 0; i < _collider.Length; i++){
_collider*.GetComponent(BoxCollider).isTrigger = true;*
-
}* -
yield WaitForSeconds(WaitTime);* -
for(var i : int = 0; i < _collider.Length; i++){*
collider*.GetComponent(BoxCollider).isTrigger = false;
_ }*
* Wait = false;*
}
thanks for your help… totally appreciate it…
^_____^