Adding separation between firing weapons and grenades

Right now, there should be an issue between the grenades and the guns because the grenades will operate differently. They don’t have a fire animation so they basically loop. Let’s adjust this so weapons that fire bullets animate differently.

I know my current idle state determines if I’m shooting a pistol, a machine gun, or a grenade. Let’s pass in a parameter to avoid issues.

Now when swapping between, there should be no null check errors.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Al Heck

Unity Developer and Software Engineer who loves making games with GameDevHQ