void Update() { if (CardboardMagnetSensor.CheckIfWasClicked() || GvrControllerInput.IsTouching || Input.anyKeyDown) { //if (isCameraWatching()) { //rotate = true; card.transform.Rotate(new Vector3(0, 40, 0) * Time.deltaTime, Space.World); } if (rotate) { //card.transform.Rotate (new Vector3(0,40,0) * Time.deltaTime, Space.World); } }
void Start() { CardboardMagnetSensor.SetEnabled(true); }