Unity Learn home
0
0
Escape Room Prototype
40 views
A super simple Escape Room Prototype.
https://github.com/LovelyBeetle/unity_oop_sub.git

Basically, flip the switch to open the chest, get the key from the chest, and unlock the door.
But the OOP pillars are present in the code. Interactable objects methods are defined in its interface, as well as lockable objects in a class. Private variables are encapsulated, and modified only within the class, or via public methods.
Also, the objects use polymorphism to modify how the same method responds in different objects.
Where possible, I have abstracted down to (for myself) most sensible level (for example ILockable).

There is no UI as of now, just simple console outputs.
Media
1
1