// Use this for initialization void Start() { cameraRoate_obj = GameObject.Find("DualTouchControls"); cameraRotate = cameraRoate_obj.GetComponentInChildren <CameraRotate>(); camera_Distance = this.transform.localPosition.z; }
// Use this for initialization void Start() { cameraRotate = GameObject.Find("DualTouchControls/TurnAndLookTouchpad").GetComponent <CameraRotate>(); }