Autoplay
Autocomplete
Previous Lesson
Complete and Continue
Object-Oriented programming for Unity Devs
Introduction
How to ask questions / refund (1:50)
Asset used in this course
Join the community!
Starter project + OOP Theory
Downloading the Starter Project (2:59)
Project overview (5:14)
Why do I need OOP? (7:15)
Object vs Class (6:23)
Encapsulation (8:09)
Abstraction (6:48)
Inheritance P1 - Abstract Class (8:21)
Inheritance P2 - Interface (12:22)
Polymorphism (8:46)
Composition (5:35)
Do we need all this complexity? (5:43)
Leave a review!
Problem 1 - Adding Multiple Weapons
Problem description (7:54)
Planning a solution (12:17)
Encapsulation - Weapon class (9:39)
Abstraction - Attack Pattern SO (13:19)
Inheritance - different Attack Patterns (10:37)
Challenge - Burst Attack Pattern
Solution - Burst Attack Pattern (7:24)
Problem 2 - Adding meteorite to our game
Problem - Bullet collision is rigid (3:59)
Creating a common interface (3:26)
IHittable interface (6:54)
Refactoring Player and Enemy scritps (11:16)
Challenge - Create a meteor (2:46)
Solution - Create meteor (7:40)
Problem 3 - Duplicate code
Problem - Adding feedback to hit logic (7:41)
Unity Components Architecture (12:07)
Health class (12:48)
Reusable feedback (14:35)
Player feedback (16:59)
Challenge - Bullet feedback (6:22)
Solution - Bullet feedback (6:46)
Problem 4 - Creating different enemies
Problem - Adding more enemy types (4:58)
Solution: Inheritance? (6:15)
Composition: MovementActionAI (5:57)
Composition: Shoot and Aim Actions (12:03)
Challenge - New Enemy Type (4:43)
Solution -New Enemy Type (6:31)
Summary
Summary (4:25)
Teach online with
Solution -New Enemy Type
Lesson content locked
If you're already enrolled,
you'll need to login
.
Enroll in Course to Unlock