Пример #1
0
        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);
            }
        }
Пример #2
0
 void Start()
 {
     CardboardMagnetSensor.SetEnabled(true);
 }