public class not accessible C#
my repl tells me that my class player doesn't exist in the current context when i try to call it in a different class I've tried to get a reference to the player in the class but then it shows me
Action.cs(6,22): error CS0051: Inconsistent accessibility: parameter type
game.Player' is less accessible than methodgame.Action.CreateAction(game.Player)'
any help will be appreciated
player inside a method. Other classes and methods won't be able to access it. Move it into the namespace or the class so you can either reference it directly or with respect to