*
This commit is contained in:
@@ -23,7 +23,7 @@ public class PlayerController : MonoBehaviour {
|
||||
|
||||
// Use this for initialization
|
||||
void Start () {
|
||||
cameraObject = gameObject.transform.FindChild ("Camera").gameObject;
|
||||
cameraObject = gameObject.transform.Find ("Camera").gameObject;
|
||||
rotateUpDown = transform.localEulerAngles.x;
|
||||
rotateLeftRight = transform.localEulerAngles.y;
|
||||
c = gameObject.GetComponent<CharacterController> ();
|
||||
|
||||
Reference in New Issue
Block a user