Just about anything will work for panfish, sunfish in particular.  Just give it a shot and see what works.  If one fly isn't working out, tie on a different one.  Part of fishing is finding out what works best in different situations.
 
I'll also add that for panfish, a lot of my success has come from the wet fly.  I tie on a popper, or a regular dry fly and then I tie on a wet fly (a small nymph usually) about a foot or so behind the dry fly.  Many times the fish will be attracted to the surface action and then they will hit the wet fly.