This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // from https://github.com/ASPePeX/Unity-Brainfarts/blob/master/Assets/Twinstick/CameraControl.cs | |
| using UnityEngine; | |
| public class CameraControl : MonoBehaviour | |
| { | |
| private Transform _playerPosition; | |
| // Use this for initialization |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // from http://unity3d.com/learn/tutorials/modules/beginner/platform-specific/accelerometer-input | |
| using UnityEngine; | |
| using System.Collections; | |
| public class AccelerometerInput : MonoBehaviour | |
| { | |
| void Update () | |
| { | |
| transform.Translate(Input.acceleration.x, 0, -Input.acceleration.z); | |
| } |