Is this something you can help me with?

Can somebody please show me how to combine object pooler and switch just for beginners? thanks!!!

also I don’t know why there’s an error I copied it verbatim

you are trying to get a value by index from a GameObject instead of an Array or List.
I posted an answer to an exact same question earlier : C# script error Cannot apply indexing with [] to an expression of type GameObject

thanks team2studio I actually needed to watch the video tutorial until the end to see how it got fixed my only problem now is I’m confused how to use object pooling with switch method do you happen to know how? just for beginners I only started learning Unity last month

I’m sorry but you’ll need to be more specific.
A switch statement could be used to start the pooling, or choose what pool to instantiate from…
You do not need a switch statement to use object pooling anyway, unless you have multiple pools or something like that.
I also did not see any switch statement in that picture you posted.