Skip to content

Commit

Permalink
Something
Browse files Browse the repository at this point in the history
  • Loading branch information
PereViader committed Jun 5, 2017
1 parent 4baef21 commit 606c964
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void OnConnectedToMaster()
void CreateRoom()
{
RoomOptions roomOptions = GameModeFabric.ConstructRoomOptionsForGameMode(gameMode);
TypedLobby sqlLobby = GameModeFabric.ConstructTyppedLobby();
TypedLobby sqlLobby = GameModeFabric.ConstructTypedLobby();
PhotonNetwork.CreateRoom(null, roomOptions, sqlLobby);
}

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,14 @@ void Awake()
gameManager = Component.FindObjectOfType<Capture_GameManager>();
}

// Update is called once per frame
void Update () {
/*if ( !isCaptured && Input.GetKeyDown(KeyCode.L) )
{
gameManager.Score(1, 0);
isCaptured = true;
return;
}*/

if (PhotonNetwork.isMasterClient && !isCaptured)
{
UpdateCapture();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Transform getDiferentRandomAreaPosition(Transform previousArea)
do
{
newCapturePosition = GetRandomCapturePosition();
} while (newCapturePosition == previousArea);
} while (previousArea != null && newCapturePosition.position == previousArea.position);
return newCapturePosition;
}

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void JoinOrCreateGame()
{
if ( desiredGameModes != null )
{
TypedLobby sqlLobby = GameModeFabric.ConstructTyppedLobby();
TypedLobby sqlLobby = GameModeFabric.ConstructTypedLobby();
string[] sqlLobbyGameModeOptions = desiredGameModes.Select(x => RoomProperties.GameMode + "=" + (int)x).ToArray();
string sqlLobbyFilter = string.Join(" OR ", sqlLobbyGameModeOptions);
PhotonNetwork.JoinRandomRoom(null, 0, MatchmakingMode.FillRoom, sqlLobby, sqlLobbyFilter);
Expand All @@ -69,7 +69,7 @@ void OnPhotonRandomJoinFailed()
void CreateRoom(GameMode gameMode)
{
RoomOptions roomOptions = GameModeFabric.ConstructRoomOptionsForGameMode(gameMode);
TypedLobby sqlLobby = GameModeFabric.ConstructTyppedLobby();
TypedLobby sqlLobby = GameModeFabric.ConstructTypedLobby();
PhotonNetwork.CreateRoom(null, roomOptions, sqlLobby);
}

Expand Down
2 changes: 1 addition & 1 deletion Assets/Unity/Scripts/StaticClassesEnums/GameModeFabric.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static RoomOptions ConstructRoomOptionsForGameMode(GameMode gameMode)
return roomOptions;
}

public static TypedLobby ConstructTyppedLobby()
public static TypedLobby ConstructTypedLobby()
{
return new TypedLobby("gameLobby", LobbyType.SqlLobby);
}
Expand Down

0 comments on commit 606c964

Please sign in to comment.