Queue's in JavaScript

Hey guys,

Just been trying to use a Queue in javascript (converting some C# to javascript) and i can’t quite find a way to declare a queue of transforms

Example.

private var Tqueue : Queue<Transform>;

Returns errors, does anyone know the proper way of doing so? Or is their no Queue in Javascript?

I don’t get errors with

private var Tqueue : Queue;

however this stops me from using the queue for what i intend to use it for

Thanks

Queue.

It’s not part of any language, it’s a .NET class.

–Eric

I’m still getting an error with that though

private var objectQueue : Queue.<Transform>;

Nevermind, i googled that and picked up on something you said to someone else about

import System.Collections.Generic;

Thanks for your help Eric