Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Cutting down on code with Generics - Multi-Weapon System in Unity - Part 8

Автор: Bardent

Загружено: 2022-12-14

Просмотров: 4494

Описание:

In this part we try to identify where in our weapon system we can reuse some code. Turns out all of our weapon components need data... so using generics we can cut down on quite a bit of work we need to do in the future when creating more components :D

Generics:
   • What are Generics? (C# Basics)  

All Assets:
https://drive.google.com/drive/folder...

Discord Server:
  / discord  

If you wish to support me more:
  / bardent  

GitHub link for this part:
https://github.com/Bardent/Weapon-Sys...

GitHub Repo Link:
https://github.com/Bardent/Weapon-Sys...

Player Controller Series:
   • 2D Platformer Controller  

00:00 - Intro
00:24 - What are we repeating?
01:30 - What can we do about it?
04:14 - Why we had to make a separate class
04:49 - Continue extending the WeaponComponent class
05:48 - Update Movement to use the new Generic Class
07:03 - Fixing Namespace in SO Assets
08:59 - Testing in Unity
09:25 - Upate WeaponSprite to use new Generic Class
09:55 - What else can we make more generic?
10:55 - Getting the current attack data
13:26 - Creating the AttackData base class
13:55 - Limiting T2
14:45 - Using AttackData in ComponentData
18:26 - Getting the CurrentAttackData
18:54 - Updating the two weapon components to use the generic currentAttackData
21:05 - Addressing errors caused by not removing old variables from the Component Datas
22:28 - Testing the game
23:04 - Why did we do this?
23:49 - Outro

Cutting down on code with Generics - Multi-Weapon System in Unity - Part 8

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Создание кнопок инспектора с помощью скриптов редактора и рефлексии — Многооружейная система в Un...

Создание кнопок инспектора с помощью скриптов редактора и рефлексии — Многооружейная система в Un...

Создание компонента для обнаружения врагов! — Многооружейная система в Unity — Часть 10

Создание компонента для обнаружения врагов! — Многооружейная система в Unity — Часть 10

Claude Cowork: The Hidden Power Everyone's Missing

Claude Cowork: The Hidden Power Everyone's Missing

C# Generics - The complete guide

C# Generics - The complete guide

2D Multi-Weapon System - Unity

2D Multi-Weapon System - Unity

2D Weapon Pickup & Swap - Unity

2D Weapon Pickup & Swap - Unity

Будьте ОСТОРОЖНЫ с объектами, подлежащими скриптованию!

Будьте ОСТОРОЖНЫ с объектами, подлежащими скриптованию!

Организация нашего инспектора! — Многосистемное оружие в Unity — Часть 11

Организация нашего инспектора! — Многосистемное оружие в Unity — Часть 11

The Power of Scriptable Objects as Middle-Men

The Power of Scriptable Objects as Middle-Men

Когда твоя игра плоха, но оптимизация гениальна

Когда твоя игра плоха, но оптимизация гениальна

Run your Dedicated Servers like a PRO! (Unity Game Server Hosting Multiplayer Tutorial)

Run your Dedicated Servers like a PRO! (Unity Game Server Hosting Multiplayer Tutorial)

20 Advanced Coding Tips For Big Unity Projects

20 Advanced Coding Tips For Big Unity Projects

Using Interfaces in Unity Effectively | Unity Clean Code

Using Interfaces in Unity Effectively | Unity Clean Code

Better Coding in Unity With Just a Few Lines of Code

Better Coding in Unity With Just a Few Lines of Code

Increasing the Reusability of the Core  - 2D Platformer Player Controller - Part 35

Increasing the Reusability of the Core - 2D Platformer Player Controller - Part 35

Giving Personality to Procedural Animations using Math

Giving Personality to Procedural Animations using Math

Как программировать в Unity: объяснение шаблона команды

Как программировать в Unity: объяснение шаблона команды

Как я добавил МНОГО оружия в свою игру!

Как я добавил МНОГО оружия в свою игру!

Level editing made easy with Automapping

Level editing made easy with Automapping

10 вещей, которые вам НУЖНО делать в Unity

10 вещей, которые вам НУЖНО делать в Unity

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com