new API and rematch WIP
This commit is contained in:
@@ -22,6 +22,7 @@ public class LevelLoadManager : MonoBehaviour
|
||||
public TMP_Text p1_l10, p2_l10;
|
||||
public Sprite redIcon, blueIcon;
|
||||
public TMP_Text txtMiddle;
|
||||
public TMP_Text txtRcPrize;
|
||||
[Header("Game Over UI")]
|
||||
public GameObject p1_winner;
|
||||
public GameObject p2_winner;
|
||||
@@ -84,7 +85,7 @@ public class LevelLoadManager : MonoBehaviour
|
||||
}
|
||||
|
||||
Team myTeam = Team.Red;
|
||||
public void SetupMatchMade(Team myTeam_, string opponentName, string myName, string myL10, string opponentL10){
|
||||
public void SetupMatchMade(Team myTeam_, string opponentName, string myName, string myL10, string opponentL10, string rcPrize){
|
||||
myTeam = myTeam_;
|
||||
matchmadeUI.SetActive(true);
|
||||
p1_winner.SetActive(false);
|
||||
@@ -113,23 +114,24 @@ public class LevelLoadManager : MonoBehaviour
|
||||
p2_name.text = myName;
|
||||
p1_l10.text = myL10;
|
||||
p2_l10.text = opponentL10;
|
||||
|
||||
txtRcPrize.text = rcPrize;
|
||||
}
|
||||
|
||||
public static MatchmadePlayer myPlayer;
|
||||
public static MatchmadePlayer opponentPlayer;
|
||||
|
||||
public void SetupMatchMade(Team myTeam_, MatchmadePlayer myPlayer_, MatchmadePlayer opponentPlayer_){
|
||||
public void SetupMatchMade(Team myTeam_, MatchmadePlayer myPlayer_, MatchmadePlayer opponentPlayer_, string rcPrize){
|
||||
myTeam = myTeam_;
|
||||
myPlayer = myPlayer_;
|
||||
opponentPlayer = opponentPlayer_;
|
||||
|
||||
string opponentName = opponentPlayer_.Name;
|
||||
string myName = myPlayer_.Name;
|
||||
|
||||
string myL10 = $"L10 {myPlayer.l10_wins} -{myPlayer.l10_losses}";
|
||||
string opponentL10 = $"L10 {opponentPlayer.l10_wins} -{opponentPlayer.l10_losses}";
|
||||
|
||||
SetupMatchMade(myTeam, myName, opponentName, myL10, opponentL10);
|
||||
SetupMatchMade(myTeam, myName, opponentName, myL10, opponentL10, rcPrize);
|
||||
}
|
||||
bool gameOver = false;
|
||||
public void SetupGameOver(Team winningTeam, int redScore, int blueScore){
|
||||
|
||||
Reference in New Issue
Block a user