Accidently overwrote Camara Monobehaviour
I wasn't thinking and I created a script to control the camera, and I named it "Camera.cs". Now every script that references the default camera Monobehaviour throws the following error:
error CS0119: Expression denotes a type', where a
variable', value' or
method group' was expected
Is there a way to restore the original Camera Monobehaviour?
Answer by sora_jp · Mar 27, 2017 at 03:09 PM
Rename the Camera.cs script AND class name to something else. Make sure that they are the same
Thank you for your reply. I've renamed the script to CameraFar.cs and the public class declaration now reads:
public class CameraFar : $$anonymous$$onoBehaviour {
However, it has not resolved the problem. I'd appreciate any other suggestions if you can think of anything else that may help.