An object reference is required to access a non-static member
You should make your audioSounds and minTime members static: But I would consider using singleton objects instead of static members instead: Update from September 2020: Six years later, it is still one of my most upvoted answers on StackOverflow, so I feel obligated to add: singleton is a pattern that creates a lot of problems … Read more