void UseMovementStack() { GameObject capsule = GameObject.CreatePrimitive(PrimitiveType.Capsule); MoveStack mover = capsule.AddComponent <MoveStack>(); mover.AddMove(Moves.None); mover.AddMove(Moves.Forward); mover.AddMove(Moves.None); mover.AddMove(Moves.None); mover.AddMove(Moves.Right); mover.AddMove(Moves.None); mover.AddMove(Moves.Right); mover.Move(); }