Example #1
0
    void Start()
    {
        characterInput = GetComponent <Character_Input> ();
        mybody         = GetComponent <Rigidbody> ();

        theCollider = GetComponent <CapsuleCollider> ();

        Cursor.lockState = CursorLockMode.Locked;
        speed            = walkSpeed;
    }
Example #2
0
 // Start is called before the first frame update
 void Start()
 {
     characterInput = GetComponent <Character_Input>();
     recorder       = GetComponent <CameraRecorder>();
     UpdateCameraView(); // Initialize (make sure only one camera is active and appropriate wheels are hidden)
 }