Hi!
I’m new to Javascript and especially Unity and I couldn’t find anything answering my question.
Currently I’m trying to create an object field which uses FIFO (First-In-First-Out). I was hoping for some native/inbuild method in Unity and then I found this: Queue's in UnityScript - Questions & Answers - Unity Discussions
This helped me only a bit though, because there seems to be no possible way to insert custom objects into this queue. I also couldnt find queues in the Unity Scripting API Reference.
Is there an actual possibility to add custom objects - as declared as below - in this queue or any other native FIFO structure or do I have to make something myself?
var tower_brick : Transform;
Thanks in advance!