- I am getting the error below appearing in my console:
error CS0163: Control cannot fall through from one case label to another
CS0163 is caused when a switch with more than one case is not explicitly terminated within each section. This is required as a switch does not allow multiple cases to be used in the same iteration of the switch.
CS0163 is fixed by adding either of the following statements to each case.
One small correction continue will not work in the switch statement. If a fall-through is needed on can write
goto case "Hotbar"';
at the location of the first arrow.
Please sign in to leave a comment.