Hello!I just started developed game for ios.And I need help :1)How I can enter/exit vehicle in unity for iOS? (I have player relative controls).How I ca do touch button for it?
2)How to do that people can spawn randomly (like gta)???
Please help me
I am new in unity
- Typically when the player gets to the side of the vehicle and the human makes some action (like touching an icon that means get into car) the game will switch to an animation of the player getting into the car. Once this has happened, the camera will switch to the viewpoint of the player in the vehicle (or move to be behind the vehicle) to signify that the human is now going to steer the car. You can get Touch data from Unity using Input.GetTouch.
- The Object.Instantiate API can be used to spawn people. The example in the docs shows how to do this. In your game you’ll need to choose random locations where the people spawn from. You might want to simply pick some locations around your level, and randomly place the people there, rather than literally choosing random locations (which might be in the middle of a building, or lake, or whatever.)
Both these questions are as much about game play mechanics as Unity.