Create Melee Attack / Combat in Unity - P2 - Hitting objects
Sunny Valley Studio
0:00 / 0:00
Create Melee Attack / Combat in Unity - P2 - Hitting objects
18 699 просмотров · 4 года назад
Sunny Valley Studio
46,5 тыс. подписчиков
18 699 просмотров · 4 года назад
In this video I will show you how to create a simple melee combat in Unity so that you can perform an attack, detect all the enemies in range and reduce there through a custom health script.
Learn How to make a Juicy 2D shooter in Unity:
https://courses.sunnyvalleystudio.com/
Scripts:
https://github.com/SunnyValleyStudio/...
Aiming at mouse: • How to Aim a weapon at Mouse in Unity 2D
New input system: • How to use NEW Input System in Unity
Assets used:
https://analogstudios.itch.io/
𝗛𝗮𝘃𝗲 𝗮𝗻𝘆 𝗾𝘂𝗲𝘀𝘁𝗶𝗼𝗻𝘀? 𝗝𝗼𝗶𝗻 𝘁𝗵𝗲 𝗱𝗶𝘀𝗰𝗼𝗿𝗱!
/ discord
𝗣𝗟𝗘𝗔𝗦𝗘 support the channel:
/ sunnyvalleystudio
00:00 OverlapCircleAll raycast detection
06:18 Testing collider detection
08:14 Health script
12:50 Testing health system
#unity2d #gamedev #nuclearthrone