I am new at CSharp, and do not understand what is the problem.
public abstract class Player
{
protected Behaviour fBehaviour;
public Behaviour FBehaviour { get; set; }
the error says Error 6 Inconsistent accessibility: field type ... is less accessible than field ...
I've tried changing everything, but nothing worked.
It means that class Behavior is not public, but Player is and is trying to expose it as public.
Change Behavior to be public.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With