
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;
...