Patrol Enemy Attack & Serialize field | Learn UNITY & C# |Beginners & Intermediate

Опубликовано: 10 Февраль 2026
на канале: Prime Knight
87
2

In this video I have explained about how to attack in unity & how serialized field make a private field public! This tutorial for beginners & intermediate level who just started out making attack in unity game engine with c sharp programming!
····················································································
Time stamps ⌛
00:00 Introduction
00:45 Health script
01:01 Serialize field explanation
04:40 Take damage function for player
09:17 Die for player (Message)
12:00 Logic of calling take damage function
12:34 Logic of draw circle (Attack circle)
13:54 Attack function of patrol enemy
23:45 Drawing circle to able to see
28:47 Calling attack function through event
31:15 Calling take damage function from player script in patrol enemy script
····················································································
2D platformer Udemy course
▶ https://www.udemy.com/course/learn-un...
····················································································
I provide online coaching on game development through google meet or zoom so if
you want to register wanna take a free trial then DM me on LinkedIn/Instagram.
For booking consultation with me DM me on Instagram & I have link down below!
····················································································
My Udemy Course
▶ https://www.udemy.com/course/learn-un...
····················································································
Support Bat ▶   / bhairab  
LinkedIn ▶   / bhairabroy  
Instagram ▶   / bhairab_dev  
····················································································
Complete Tutorial for Intermediate/Beginners
▶    • Full tutorial on UNITY & C# by making dodg...  
····················································································
Full course on how to make a complete 2D PLATFORMER Game ⬇
2D PLATFORMER -    • How to make a game in unity full course fo...  
Full course unity & C# for beginners
Flappy bird ▶    • Full Course UNITY & C# 2024 | Beginner Tut...  
····················································································
Buy a 2D Game on Fiverr from me
▶ https://www.fiverr.com/s/7YjAWX1
····················································································
Watch this tutorials to make your game!
Player movement 2d endless runner
▶    • Introduction to player movement in endless...  
Top down game for beginners
▶    • How to make top down game in unity for beg...  
2D Platformer game for beginners
▶   • How to make 2d action platformer for begin...  
Flappy style game for beginners
▶    • How to make flappy type style game in unit...  
Unity for beginners with 2d platformer
▶    • How to make a game for beginners in unity ...  
····················································································
Learn how to make video game in unity game engine for beginners!
If you haven't subscribe my channel yet then consider to subscribe for get tutorials on how to make a game in unity game engine for beginners!
Here you will get beginners tutorials on how to make a video game in unity engine from basics to advance topic! If you enjoyed this video then like this and share it with your friends who want to learn unity game engine from the beginning!
····················································································
#2dgamedevelopment #attackin2dgame #unitytutorialforbeginners #unitytutorials #gamedevelopment #gamedevelopmenttutorial #unityforbeginners #unity #unity2dgame #unity2d #unity2dplatformer