Exemple #1
0
 public IEnumerator EnterRoom(RoomInstance room)
 {
     if (curRoom != null)
     {
         yield return(EixtRoom(ExitRoomType.EnterNextRoom));
     }
     curRoom = room;
     yield return(curRoom.Enter());
 }