Hi,
I received the following error message in MonoDevelop-Unity when completing the assignment for Lecture 30:
Error CS0619: UnityEngine.Component.camera' is obsolete:
Property camera has been deprecated. Use GetComponent() instead. (UnityUpgradable)’ (CS0619) (Assembly-CSharp)
I am confused on how to fix this error. What should I change in the code? This is what I currently have:
Camera camera = GetComponentInChildren<Camera> (); camera.transform.localRotation = Quaternion.Euler(-mouseY, 0, 0) * camera.transform.localRotation;
Thank you.