About

Deus-Ex-The-Fall

Deus Ex: The Fall is the start of a new journey in the award winning Deus Ex game series for Android phones and tablets.

Search This Blog

Monday, August 24, 2015

Use Accelerometer for Roll-a-ball Movement in unity 3d

using UnityEngine; using System.Collections; public class PlayerController : MonoBehaviour { // Using same speed reference in both, desktop and other devices public float speed =1000; void Main () { // Preventing mobile devices going in to sleep mode //(actual problem if only accelerometer input is used) Screen.sleepTimeout = SleepTimeout.NeverSleep; ...