投注修改
This commit is contained in:
parent
343bf1de25
commit
d95ce828ba
@ -1800,6 +1800,7 @@ MonoBehaviour:
|
||||
warnPanel: {fileID: 1807910154}
|
||||
wonnius: []
|
||||
allother: {fileID: 716344324}
|
||||
HaveallotherMove: 0
|
||||
is_jisha: 0
|
||||
is_jisha_jiesuan: 0
|
||||
--- !u!114 &142654724
|
||||
@ -2182,7 +2183,8 @@ MonoBehaviour:
|
||||
m_EditorClassIdentifier:
|
||||
Money: 1000
|
||||
AllBetCoins: 0
|
||||
SelfWoniuText: {fileID: 0}
|
||||
SelfWoniuText: {fileID: 1046374311}
|
||||
HaveBet: 0
|
||||
--- !u!1 &197030554
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -104,10 +104,10 @@ public class AllHouseContro : MonoBehaviour
|
||||
}
|
||||
else if (serverResponse.data.carrySeconds < 45){
|
||||
ControAllDoorOpen();
|
||||
text.GetComponentInChildren<Text>().text = (60 - serverResponse.data.carrySeconds).ToString();
|
||||
text.GetComponentInChildren<Text>().text = (45 - serverResponse.data.carrySeconds).ToString();
|
||||
detailsText.GetComponentInChildren<Text>().text = "秒后霸主出现";
|
||||
await Task.Delay(1000);
|
||||
text.GetComponentInChildren<Text>().text = (60 - serverResponse.data.carrySeconds - 1).ToString();
|
||||
text.GetComponentInChildren<Text>().text = (45 - serverResponse.data.carrySeconds - 1).ToString();
|
||||
|
||||
|
||||
if (!HaveallotherMove)
|
||||
|
@ -70,7 +70,19 @@ public class BettingBtn : MonoBehaviour
|
||||
bg.GetComponentInChildren<AllHouseContro>().battleRoyaleGameDetails();
|
||||
}
|
||||
|
||||
public async void BetAgain()
|
||||
{
|
||||
RequestData body = new RequestData();
|
||||
body.escapeId = bg.GetComponentInChildren<AllHouseContro>().escapeId;
|
||||
body.bet = PlayerInfo.instance.AllBetCoins;
|
||||
body.roomNo = bg.GetComponentInChildren<AllHouseContro>().roomNo;
|
||||
body.userId = Global.global.serverResponse.data.userId;
|
||||
|
||||
|
||||
string response = await web.SendRequest(web.URL + "/snail/gameEscape/userBet", "POST", JsonUtility.ToJson(body), Global.global.CreateHeaders());
|
||||
Debug.Log("Óû§ÏÂ×¢ÏìÓ¦: " + response);
|
||||
bg.GetComponentInChildren<AllHouseContro>().battleRoyaleGameDetails();
|
||||
}
|
||||
|
||||
void SetBet()
|
||||
{
|
||||
|
@ -38,8 +38,11 @@ public class HouseBtn : MonoBehaviour
|
||||
transform.GetComponent<PlayerMove>().StartMove();
|
||||
woniuMovePos.HadChoise = true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (PlayerInfo.instance.HaveBet)
|
||||
{
|
||||
BettingBtn.instance.BetAgain();//再次投注,换房子
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -85,18 +85,18 @@ public class logoPanel : MonoBehaviour
|
||||
|
||||
public async void OnClickLoginBtnAsync()
|
||||
{
|
||||
//loginbody body = new loginbody
|
||||
//{
|
||||
// userName = userNameField.text,
|
||||
// password = passwordField.text,
|
||||
// verifyCode = int.Parse(verifyCodeField.text)
|
||||
//};
|
||||
loginbody body = new loginbody
|
||||
{
|
||||
userName = "15151658596",
|
||||
password = "123456",
|
||||
verifyCode = 111111
|
||||
userName = userNameField.text,
|
||||
password = passwordField.text,
|
||||
verifyCode = int.Parse(verifyCodeField.text)
|
||||
};
|
||||
//loginbody body = new loginbody
|
||||
//{
|
||||
// userName = "15151658596",
|
||||
// password = "123456",
|
||||
// verifyCode = 111111
|
||||
//};
|
||||
string loginResponse = await web.SendRequest(web.URL+"/snail/user/login", "POST", JsonUtility.ToJson(body));
|
||||
ServerResponse response = JsonUtility.FromJson<ServerResponse>(loginResponse);
|
||||
if (response != null && response.code == 200 && response.data != null)
|
||||
|
Loading…
Reference in New Issue
Block a user