Game Development Reference
In-Depth Information
Illustration 83: Top view of the play room and the shooters surrounding it
To prevent the projectiles from colliding with the shooters, we have to remove colliders of
all shooters. Each one of these shooter will be given a collection of projectile prefabs to
randomly choose one from them and shoot it. Additionally, they will be given maximum
and minimum time limits to randomly set pause time between shoots. These functions are
encoded in PhysicsShooter script shown in Listing 71.
Search WWH ::




Custom Search