Stack in unity

I need to create 3 Stack in Unity and add some GameObject in this stack , i do not know how to create this , any one can help me ???

1 Like

Check the documentation: Stack.

Stacks have three main methods:

  1. Push: add an object on the stack.
  2. Pop: remove and return the first object on the stack.
  3. Peek: get the first object without removing it.