settings
This commit is contained in:
@@ -120,6 +120,7 @@ public class GameOverCanvas : MonoBehaviour
|
||||
btnLeave.interactable = !val;
|
||||
if(val){
|
||||
StopCoroutine(countdownCoroutine);
|
||||
countdownTxt.text = "";
|
||||
}else{
|
||||
countdownCoroutine = StartCoroutine(CoroutineCountdown());
|
||||
}
|
||||
@@ -336,6 +337,8 @@ public class GameOverCanvas : MonoBehaviour
|
||||
StartCoroutine(CoroutineShowRematchPanel());
|
||||
|
||||
betSlider.maxValue = (LevelLoadManager.myPlayer.rc < LevelLoadManager.opponentPlayer.rc) ? LevelLoadManager.myPlayer.rc : LevelLoadManager.opponentPlayer.rc;
|
||||
betSlider.value = betSlider.maxValue / 2;
|
||||
betSlider.minValue = Mathf.Clamp(betSlider.maxValue /10f,5,10000);
|
||||
}
|
||||
|
||||
IEnumerator CoroutineShowRematchPanel(){
|
||||
@@ -358,7 +361,6 @@ public class GameOverCanvas : MonoBehaviour
|
||||
StartCoroutine(CoroutineHideRematchPanel());
|
||||
|
||||
countdownCoroutine = StartCoroutine(CoroutineCountdown());
|
||||
|
||||
}
|
||||
|
||||
IEnumerator CoroutineHideRematchPanel(){
|
||||
|
||||
Reference in New Issue
Block a user