Shooting projectiles at the orbs

PlayStateScene1_1 has no code for shooting. PlayStateScene1_2 has code to shoot one EnergyPulse at a time. In Scene2, PlayStateScene2 has continuous rapid fire shooting.

To get the appearance of an EnergyPulse, we will actually shoot a Sphere. We won't see the Sphere because its rendering will be unchecked. The EnergyPulse effect is created by using a Trail Renderer effect on the Sphere.

Get Learning C# by Developing Games with Unity 3D 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.