void SavaeValueCurrentRoom()
 {
     transitionBetweenModes.LastPoint = currentRoom.WhatIsTheRoomUsedFor;
     transitionBetweenModes.SaveLP();
     AddElementToListTBM();
     SaveTransitionBetweenModes();
     if (score == true)
     {
         score.CountsTransitions();
     }
     if (RoomName)
     {
         RoomName.text = currentRoom.name;
     }
 }
Esempio n. 2
0
 void CleaningPath()
 {
     for (int index = 0; index < 89; index++)
     {
         transitionBetweenModes.ListNameRooms[index]    = "";
         transitionBetweenModes.ListRoomsNumbers[index] = "";
     }
     transitionBetweenModes.PathToLevels     = "";
     transitionBetweenModes.PathNameRoom     = "";
     transitionBetweenModes.RoomCheck        = "";
     transitionBetweenModes.IndexRoomForlist = 0;
     transitionBetweenModes.CheckOnTheEnemy  = 0;
     transitionBetweenModes.LastPoint        = "";
     transitionBetweenModes.SaveList();
     transitionBetweenModes.SaveLP();
 }