Setting Up the Player Object
A simple player object consists of a camera, a physics collider, and a light source (for a flashlight).
To play the game, the player needs to be able to move and look around. In the example, I use an onscreen joystick and the device’s accelerometer to move the player and the camera.
The onscreen joystick was created following this YouTube tutorial. Download the C# script used, here.