That looks like someone found a couple of lumps of code and threw them into a single file, then hoped they would compile and work.
You've got an empty class outside all namespaces, you've got a bunch of
using
directives that duplicate each other, and should probably all be at eth top for clarity, you've got empty bracket blocks that aren't associated with any flow control statements:
{
}
You've got nested methods including a static class constructor declared inside a method, you've got
public
variables defined inside methods, the list goes goes on and on ...
Stop throwing brackets in at random, and think about what you are trying to do - because I don't think from that that you understand very much of the basics of C#. And you need those down pat or Unity is going to give you massive problems - as is grabbing code at random of hoping it will both compile and then work when stuffed into your source files.
Take all your copy'n'patse stuff out, get the basic file working, and then think about what you are trying to add before you start pasting.
You are not going to produce anything working with your current approach!