Shooting Laser:

Create new 3d Object,Capsule.
Make prefab of enemy object.
Create and Apply material to laser object.
We can see Private field in Inspector.
Assign Laser prefab in Player script.
This will check the key pressed event for space key.
Shooting Laser




Unity Game Developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Setup Serverless Applications With AWS CloudFormation

Project marketing Crodo

Known issues with Office and Windows 10

How To Apply a Sync Slicer in Power Bi Desktop

What will change with the release of Flutter 2.0?

Be Aware of Your Team Environment

How to add app icons and splash screens to a React Native app in staging and production

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
Sudarshan Thube

Sudarshan Thube

Unity Game Developer

More from Medium

Adding laser attacks to our boss

Variables, because fixed is a worse option

Platformer: Box Push

C# scripting in Unity — Day 01