Ejemplo n.º 1
0
 public void Pop()
 {
     if (stack.head == null)
     {
         throw new Exception("Error: You cannot pop data that you don't have");
     }
     else
     {
         stack.pop();
         // stack.count = stack.count-1;
     }
 }
Ejemplo n.º 2
0
 public GameObject pop()
 {
     return(gameObjectStack.pop());
 }