Beispiel #1
0
 public void OnClick()
 {
     if (mapEditorMenuUI.GetRoom() != null && !mapEditorMenuUI.GetRoom().roomBaseLayer.ContainsKey(mouseMapPosition))
     {
         return;
     }
     if (tilesToggleUI.roomElement is RoomBaseLayer)
     {
         tilesToggleUI.roomElement.SetRotation(rotationIndex);
         roomController.AddBlock(mapEditorMenuUI.GetRoom(), mouseMapPosition, tilesToggleUI.roomElement.GetRoomData());
         //roomController.AddBlock(mapEditorMenuUI.GetRoom(), mouseMapPosition,new Room.RoomElementData(2,rotationIndex));
         mapEditorMenuUI.RefreshRoom();
     }
 }