diff --git a/TheStrongestSnail/Assets/Scripts/Battle_Royale/AllHouseContro.cs b/TheStrongestSnail/Assets/Scripts/Battle_Royale/AllHouseContro.cs index daf7f24..c9d555e 100644 --- a/TheStrongestSnail/Assets/Scripts/Battle_Royale/AllHouseContro.cs +++ b/TheStrongestSnail/Assets/Scripts/Battle_Royale/AllHouseContro.cs @@ -165,8 +165,10 @@ public class AllHouseContro : MonoBehaviour CloseBoosDoor(BoosHouse); text.GetComponentInChildren().text = ""; detailsText.GetComponentInChildren().text = "结算"; + PlayerInfo.instance.AllBetCoins = 0;//投注归0 PlayerInfo.instance.SelfWoniuText.text= PlayerInfo.instance.AllBetCoins.ToString(); + PlayerInfo.instance.HaveBet=false; HaveallotherMove=false; diff --git a/TheStrongestSnail/Assets/Scripts/Battle_Royale/BettingBtn.cs b/TheStrongestSnail/Assets/Scripts/Battle_Royale/BettingBtn.cs index ce9c494..77f8142 100644 --- a/TheStrongestSnail/Assets/Scripts/Battle_Royale/BettingBtn.cs +++ b/TheStrongestSnail/Assets/Scripts/Battle_Royale/BettingBtn.cs @@ -56,7 +56,7 @@ public class BettingBtn : MonoBehaviour public GameObject bg; public async void OnClickBetBtnAsync() { - + PlayerInfo.instance.HaveBet = true; RequestData body = new RequestData(); body.escapeId = bg.GetComponentInChildren().escapeId; body.bet = BetValue; diff --git a/TheStrongestSnail/Assets/Scripts/Battle_Royale/PlayerInfo.cs b/TheStrongestSnail/Assets/Scripts/Battle_Royale/PlayerInfo.cs index f82ddb5..b9b78f0 100644 --- a/TheStrongestSnail/Assets/Scripts/Battle_Royale/PlayerInfo.cs +++ b/TheStrongestSnail/Assets/Scripts/Battle_Royale/PlayerInfo.cs @@ -10,6 +10,7 @@ public class PlayerInfo : MonoBehaviour public float Money = 1000; public float AllBetCoins;//总共下注蛋 public TextMeshProUGUI SelfWoniuText;//蜗牛下注显示文本 + public bool HaveBet;//是否已经下注过 // Start is called before the first frame update void Start() {