**i get error on this line,i use inheritance on MoveToNextStage Can someone help me **
CodePudding user response:
The error is trying to say to you that you are trying to access a variable with a more constrained level of protection. This is about your game manager access modifier, you probably had set it to private and are trying to access it in inheritance, verify if this is private and change it to protect, remember if you do not have an access modifier, c# by default set it to private
CodePudding user response:
The error message tells you the problem. You can't access the method.
Make MovetoNextStage
public or if the class is inherited, make it protected.