game end screen l10 fix

This commit is contained in:
2026-04-05 21:43:25 +05:30
parent 4cabf27f29
commit cace0cc664
9 changed files with 1081 additions and 4390 deletions
@@ -115,8 +115,8 @@ public class LevelLoadManager : MonoBehaviour
p2_l10.text = opponentL10;
}
MatchmadePlayer myPlayer;
MatchmadePlayer opponentPlayer;
public static MatchmadePlayer myPlayer;
public static MatchmadePlayer opponentPlayer;
public void SetupMatchMade(Team myTeam_, MatchmadePlayer myPlayer_, MatchmadePlayer opponentPlayer_){
myTeam = myTeam_;
@@ -140,21 +140,9 @@ public class LevelLoadManager : MonoBehaviour
if(myTeam == winningTeam){
p1_winner.SetActive(true);
p2_winner.SetActive(false);
myPlayer.l10_wins++;
myPlayer.l10_losses--;
opponentPlayer.l10_losses++;
opponentPlayer.l10_wins--;
}else{
p1_winner.SetActive(false);
p2_winner.SetActive(true);
opponentPlayer.l10_wins++;
opponentPlayer.l10_losses--;
myPlayer.l10_losses++;
myPlayer.l10_wins--;
}
p1_l10.text = $"L10 {myPlayer.l10_wins}-{myPlayer.l10_losses}";