you are trying to inherit customPM from original PlayerMobile script.
but to override, it should have modifers like override, abstract or virtual in the base class..
In PlayerMobile, there is not..
If you want to write a custom script. C/P PlayerMobile to customPM and change class name. (Remove the enums part)
After that you can add the code lines, I suggested..
|