Time for action – creating the red bird

Let's get started with creating the red bird:

  1. Although the red bird model is 3D, it is set up in a manner similar to that of the pig. Create an empty GameObject, naming it Bird_Red, and add the appropriate model from the birds model as a child, zeroing out its position. The model should be rotated to align it along the z axis. If turned a little more toward the camera, the player is able to see the bird's face while still giving the impression of looking down the field.
  2. Next, give it a Sphere Collider component and a Rigidbody component, and set the Constraints parameters.
  3. Now, we need to create a new script named Bird. This script will be a base for all of our birds, tracking their health and triggering their ...

Get Unity Android Game Development by Example Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.