CornellTech-Unity-project  1.0
Public Member Functions | Public Attributes | List of all members
Cyan.RoomManager Class Reference

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
 

Detailed Description

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.

Member Function Documentation

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

Member Data Documentation

Room Cyan.RoomManager.currentRoom
GameObject Cyan.RoomManager.fpsController
RoomIdentifier Cyan.RoomManager.player
PrefabDB Cyan.RoomManager.prefabsDB
GameObject Cyan.RoomManager.spawns

The documentation for this class was generated from the following file: