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

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