This commit is contained in:
wulongxiao 2024-11-20 10:24:18 +08:00
parent 097ecf43cc
commit 995cf9992c
7 changed files with 37 additions and 10 deletions

View File

@ -0,0 +1,16 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e651dbb3fbac04af2b8f5abf007ddc23, type: 3}
m_Name: DefaultNetworkPrefabs
m_EditorClassIdentifier:
IsDefault: 1
List: []

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 1622835bc258c304ba8c359527cf634e
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -100,11 +100,15 @@ public class AllHouseContro : MonoBehaviour
body.escapeId = escapeId;
string response = await web.SendRequest(web.URL+"/snail/gameEscape/queryEscapeRoomList", "POST", JsonUtility.ToJson(body), Global.global.CreateHeaders());
Debug.Log("5.1.2²éѯÌÓÍö·¿¼äÏêÇéÏìÓ¦: " + response);
Debug.Log("5.1.2²éѯÌÓÍö·¿¼ä ÇëÇó:"+ JsonUtility.ToJson(body) +" ÏêÇéÏìÓ¦: " + response);
ServerResponse serverResponse = JsonConvert.DeserializeObject<ServerResponse>(response);
int index = 0;
foreach (var item in serverResponse.data.gameEscapeRoomResponseVoList){
if (HouseBtnList.Count > index)
{
HouseBtnList[index].text.GetComponentInChildren<TextBox>().SetText(item.roomBeansCoin);
}
index++;
}
Debug.Log("¸üз¿¼äÎÏÅ£µ°");

View File

@ -5,8 +5,7 @@ using TMPro;
using Unity.VisualScripting.Antlr3.Runtime;
using UnityEngine;
using UnityEngine.UI;
using static BettingBtn;
using static UnityEditor.PlayerSettings;
public class BettingBtn : MonoBehaviour
{
@ -63,7 +62,7 @@ public class BettingBtn : MonoBehaviour
body.bet = BetValue;
body.roomNo = bg.GetComponentInChildren<AllHouseContro>().roomNo;
body.userId = Global.global.serverResponse.data.userId;
Debug.Log(bg.GetComponentInChildren<AllHouseContro>().house);
bg.GetComponentInChildren<AllHouseContro>().house.text.GetComponent<TextBox>().AddText(BetValue);
PlayerInfo.instance.AllBetCoins += BetValue;
StartCoroutine(Tools.AnimateTextMashPro(PlayerInfo.instance.AllBetCoins, PlayerInfo.instance.AllBetCoins + BetValue, 0.5f, SelfWoniuText));//ÐÞ¸ÄÎÏţͷÉÏÎı¾

View File

@ -8,7 +8,7 @@ public class PlayerInfo : MonoBehaviour
{
public static PlayerInfo instance;
public static UserInfomation14 userInfomation14;
public float Money = 1000;
public float Money = 0;
public float AllBetCoins;//总共下注蛋
public TextMeshProUGUI SelfWoniuText;//蜗牛下注显示文本
public bool HaveBet;//是否已经下注过

View File

@ -213,19 +213,19 @@ public class PlayerMove : MonoBehaviour
if (!IsBoos&& objectToMove.GetComponent<PlayerMovePos>().StartPos == pathPoints[i])
{
startIndex = i;
Debug.Log("Startindex"+i);
//Debug.Log("Startindex"+i);
}
else if (IsBoos && GetComponent<BossContro>().BoosStartPos== pathPoints[i])
{
startIndex = i;
Debug.Log("Startindex" + i);
//Debug.Log("Startindex" + i);
}
if (EndPos == pathPoints[i])
{
endIndex = i;
Debug.Log("Endindex" + i);
//Debug.Log("Endindex" + i);
}
}

View File

@ -139,7 +139,7 @@ public class GameEscapeModel
}
//玩家信息
[Serializable]
public class UserInfomation14
public class UserInfomation14: Response
{
public UserInfomation14Data data;
}