diff --git a/Assets/Unity/Scripts/GeneralScripts/GameScripts/GameStarter.cs b/Assets/Unity/Scripts/GeneralScripts/GameScripts/GameStarter.cs index bb29260..f90c874 100644 --- a/Assets/Unity/Scripts/GeneralScripts/GameScripts/GameStarter.cs +++ b/Assets/Unity/Scripts/GeneralScripts/GameScripts/GameStarter.cs @@ -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); } diff --git a/Assets/CameraFacingBillboard.cs b/Assets/Unity/Scripts/PlayerScripts/CameraFacingBillboard.cs similarity index 100% rename from Assets/CameraFacingBillboard.cs rename to Assets/Unity/Scripts/PlayerScripts/CameraFacingBillboard.cs diff --git a/Assets/CameraFacingBillboard.cs.meta b/Assets/Unity/Scripts/PlayerScripts/CameraFacingBillboard.cs.meta similarity index 100% rename from Assets/CameraFacingBillboard.cs.meta rename to Assets/Unity/Scripts/PlayerScripts/CameraFacingBillboard.cs.meta diff --git a/Assets/Unity/Scripts/SpecificScripts/Capture/Capture_AreaController.cs b/Assets/Unity/Scripts/SpecificScripts/Capture/Capture_AreaController.cs index 04668d9..99acc38 100644 --- a/Assets/Unity/Scripts/SpecificScripts/Capture/Capture_AreaController.cs +++ b/Assets/Unity/Scripts/SpecificScripts/Capture/Capture_AreaController.cs @@ -36,8 +36,14 @@ void Awake() gameManager = Component.FindObjectOfType(); } - // 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(); diff --git a/Assets/Unity/Scripts/SpecificScripts/Capture/Capture_AreaManager.cs b/Assets/Unity/Scripts/SpecificScripts/Capture/Capture_AreaManager.cs index 601b501..97a9bbf 100644 --- a/Assets/Unity/Scripts/SpecificScripts/Capture/Capture_AreaManager.cs +++ b/Assets/Unity/Scripts/SpecificScripts/Capture/Capture_AreaManager.cs @@ -62,7 +62,7 @@ Transform getDiferentRandomAreaPosition(Transform previousArea) do { newCapturePosition = GetRandomCapturePosition(); - } while (newCapturePosition == previousArea); + } while (previousArea != null && newCapturePosition.position == previousArea.position); return newCapturePosition; } diff --git a/Assets/KingOfTheHill_ExperienceManager.cs b/Assets/Unity/Scripts/SpecificScripts/KingOfTheHill/KingOfTheHill_ExperienceManager.cs similarity index 100% rename from Assets/KingOfTheHill_ExperienceManager.cs rename to Assets/Unity/Scripts/SpecificScripts/KingOfTheHill/KingOfTheHill_ExperienceManager.cs diff --git a/Assets/KingOfTheHill_ExperienceManager.cs.meta b/Assets/Unity/Scripts/SpecificScripts/KingOfTheHill/KingOfTheHill_ExperienceManager.cs.meta similarity index 100% rename from Assets/KingOfTheHill_ExperienceManager.cs.meta rename to Assets/Unity/Scripts/SpecificScripts/KingOfTheHill/KingOfTheHill_ExperienceManager.cs.meta diff --git a/Assets/Unity/Scripts/SpecificScripts/LobbyScripts/GameLobbyManager.cs b/Assets/Unity/Scripts/SpecificScripts/LobbyScripts/GameLobbyManager.cs index d049c9d..aeced50 100644 --- a/Assets/Unity/Scripts/SpecificScripts/LobbyScripts/GameLobbyManager.cs +++ b/Assets/Unity/Scripts/SpecificScripts/LobbyScripts/GameLobbyManager.cs @@ -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); @@ -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); } diff --git a/Assets/Unity/Scripts/StaticClassesEnums/GameModeFabric.cs b/Assets/Unity/Scripts/StaticClassesEnums/GameModeFabric.cs index 1b102b0..d05fd9a 100644 --- a/Assets/Unity/Scripts/StaticClassesEnums/GameModeFabric.cs +++ b/Assets/Unity/Scripts/StaticClassesEnums/GameModeFabric.cs @@ -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); }