CornellTech-Unity-project
1.0
|
Attached to each scene/room. More...
Inherits MonoBehaviour.
Public Member Functions | |
void | SpawnPlayer () |
Spawn the player in front of the door to mimic that they just came from the last room note that the rooms are all lowercased- don't worry about casing when setting spawns. More... | |
Public Attributes | |
RoomIdentifier | player |
GameObject | fpsController |
Room | currentRoom |
GameObject | spawns |
PrefabDB | prefabsDB |
Attached to each scene/room.
When the room is loaded, items are placed/instaitated according to room data for room and player is placed in the spawn corresponding to the room that they last came from. If the room has been never been visited, scene will load normally without placing items.
void Cyan.RoomManager.SpawnPlayer | ( | ) |
Spawn the player in front of the door to mimic that they just came from the last room note that the rooms are all lowercased- don't worry about casing when setting spawns.
it could be all caps doesnt matter bc its lowered later
Room Cyan.RoomManager.currentRoom |
GameObject Cyan.RoomManager.fpsController |
RoomIdentifier Cyan.RoomManager.player |
PrefabDB Cyan.RoomManager.prefabsDB |
GameObject Cyan.RoomManager.spawns |