二次修改

This commit is contained in:
GL 2024-11-18 17:02:12 +08:00
parent abb4a378f8
commit 343bf1de25
3 changed files with 4 additions and 1 deletions

View File

@ -165,8 +165,10 @@ public class AllHouseContro : MonoBehaviour
CloseBoosDoor(BoosHouse);
text.GetComponentInChildren<Text>().text = "";
detailsText.GetComponentInChildren<Text>().text = "½áËã";
PlayerInfo.instance.AllBetCoins = 0;//Ͷע¹é0
PlayerInfo.instance.SelfWoniuText.text= PlayerInfo.instance.AllBetCoins.ToString();
PlayerInfo.instance.HaveBet=false;
HaveallotherMove=false;

View File

@ -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<AllHouseContro>().escapeId;
body.bet = BetValue;

View File

@ -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()
{