void Awake() { if (!instance) { instance = this; } touch = GetComponentInChildren <TouchInput>(); mic = GetComponentInChildren <Mic>(); accel = GetComponentInChildren <Accelerate>(); gyro = GetComponentInChildren <Gyro>(); }
// Use this for initialization void Start() { gyro = MobileInput.instance.gyro; }