practice mode
This commit is contained in:
@@ -411,9 +411,13 @@ public class GameOverCanvas : MonoBehaviour
|
||||
item.localScale = new Vector3(0, 0, 0);
|
||||
}
|
||||
|
||||
if(winningTeam == myTeam){
|
||||
if (GameTutorialManager.tutorialModeEnabled)
|
||||
rcPrize = 0;
|
||||
else if (winningTeam == myTeam)
|
||||
rcPrize = CoinHelper.Format(GameManager.MatchRcPrizeCoins);
|
||||
}
|
||||
|
||||
if (btnRematch != null)
|
||||
btnRematch.gameObject.SetActive(!GameTutorialManager.tutorialModeEnabled);
|
||||
|
||||
UpdateRematchAvailability();
|
||||
ApplyRcBalancesToUi(null);
|
||||
@@ -452,10 +456,13 @@ public class GameOverCanvas : MonoBehaviour
|
||||
yield return new WaitForSeconds(scaleTime * 0.5f);
|
||||
|
||||
//Rewards
|
||||
float ccReward = GameTutorialManager.tutorialModeEnabled ? 0f : 100f;
|
||||
StartCoroutine(CoroutineSetTextNumber(rcPrize, txtRewardRC, 10, "N1", "+", " RC"));
|
||||
StartCoroutine(CoroutineSetTextNumber(100, txtRewardCC, 100, "N0", "+", " CC"));
|
||||
StartCoroutine(CoroutineSetTextNumber(ccReward, txtRewardCC, 100, "N0", "+", " CC"));
|
||||
|
||||
txtBetRC.text = CoinHelper.FormatString(GameManager.MatchRcPrizeCoins) + " RC";
|
||||
txtBetRC.text = GameTutorialManager.tutorialModeEnabled
|
||||
? "0 RC"
|
||||
: CoinHelper.FormatString(GameManager.MatchRcPrizeCoins) + " RC";
|
||||
|
||||
yield return new WaitForSeconds(1f);
|
||||
|
||||
@@ -586,6 +593,14 @@ public class GameOverCanvas : MonoBehaviour
|
||||
|
||||
void UpdateRematchAvailability()
|
||||
{
|
||||
if (GameTutorialManager.tutorialModeEnabled)
|
||||
{
|
||||
btnRematch.interactable = false;
|
||||
if (rematchWarningLoser != null)
|
||||
rematchWarningLoser.text = "";
|
||||
return;
|
||||
}
|
||||
|
||||
if (winningTeam == myTeam)
|
||||
{
|
||||
btnRematch.interactable = false;
|
||||
|
||||
Reference in New Issue
Block a user