game end screen l10 fix
This commit is contained in:
@@ -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}";
|
||||
|
||||
Reference in New Issue
Block a user