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

Why You should really use Wilcom TrueSizer

My Spring Boot 101 Journal: Getting Started

PvE reform: raiting & reward

🔥 #LitePaper #Community

Cypress “wait”, avoid use it

Why business can never get rid of Oracle

Docker Desktop Alternative (Docker-CLI + Docker-Compose + Minkube + Hyperkit)

New datetime Best Practices for Python

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

Player Bounds — A Man’s Gotta Know His Limitations

Adding a collectible ammo charge powerup

Setting up GIT for Unity

2D Mobile: Setting Up The Player