- Home /
 
 
               Question by 
               TalalAslam · Nov 13, 2012 at 10:15 AM · 
                c#android  
              
 
              Run Function when user shakes mobile andriod unity c#
i want to run a function, when user shakes it mobiles in unity C# i want complete step by step solution that how can i run a function when user shakes its mobile i have use following but this couldn't help me
void Update () { if (Input.acceleration.x >30) { MyFunction(); } } Any Event or Code When Shakes*** { PlayRotate(); } thanks.
               Comment
              
 
               
              Your answer