Пример #1
0
 void RoomChange()                //Disables the current room and enables the next room. Calls BeginTransitionIn() from the TransitionScript.
 {
     LM.playerHealth = HS.Health; //Once the player reaches the end of the room, set the playerHealth in the LevelManager Script to whatever the health currently is.
     currentRoom.SetActive(false);
     nextRoom.SetActive(true);
     TS.BeginTransitionIn();
 }