Roll a Ball on Android

I’ve done making Roll a Ball game form the Unity Tutorial. Can anyone help me out on how can I get the controlls to work on my phone? I’ve heard there’s accelerometer for that but the codes seem outdated on the forums.

  1. Place ball on plane (make sure it has a rigidbody)
  2. Attach camera to plane and position accordingly
  3. Set Euler angles of plane to Input.acceleration

I haven’t tried this, but I’m thinking if you are just making a marble maze it should suffice and be really easy to do. You may need to toy around with the acceleration to make it a bit smoother.