Unity Learn home
1
0
Programming theory
17 views
Repo Theory Task Completed! Here's GitHub Link: https://github.com/Dokioli/Theory-Repo.git Tried to show different pillars of OOPS in different scenearios. The only thing I need to understand more is polymorphism. For now I have created prototype showing all OOPS pillars Like Inheritance by creating Parent Class for ships, Abstraction where I created base powerups and implemented abstract class to avoid reuse of same code but to make different powerups make different abilities like : Damage over time, add health and add coins. Encapsulation where health is accessible to any scripts making variables private and last polymorphism where i overrrided some methods to display name of ships in ui when clicked. By the looks of game, I will make a turn based games where ships with different stats will attack enemy ships in order to win.
Media
1
2