Example #1
0
        void Awake()
        {
            if (!instance)
            {
                instance = this;
            }

            touch = GetComponentInChildren <TouchInput>();
            mic   = GetComponentInChildren <Mic>();
            accel = GetComponentInChildren <Accelerate>();
            gyro  = GetComponentInChildren <Gyro>();
        }
Example #2
0
 // Use this for initialization
 void Start()
 {
     gyro = MobileInput.instance.gyro;
 }