anedumgottil / VR-Mazmorra

Procedurally generated VR Dungeon
Apache License 2.0
1 stars 0 forks source link

Create a Door #12

Open anedumgottil opened 6 years ago

anedumgottil commented 6 years ago

Description: Door should be exactly 1mX1m wide (so it fits within one Tile object) and should be it’s own Prefab GameObject, attach a script to it called “Door” so we can access it using other scripts. You can literally drag a script onto it to attach it to the GameObject before you make it a prefab and the script will be added as a Component. It will be stored in a variable inside the GridSpace class for whatever instance of GridSpace it happens to exist in when the map is generated, so don’t actually place any of them in the Scene. Again, they should be a SINGLE gameobject, a Prefab on disk. We'll spawn these into the game during MapGeneration

Graphical:

apodgo2 commented 6 years ago

Door class in C# code should be assigned to the prefab as a Script Component (drag to it) and Inherit from StationaryEntity class

apodgo2 commented 6 years ago

If we can lets see if we can create a VRTK button that will be triggered by the player to open the door.