This commit is contained in:
wulongxiao 2024-11-28 05:52:23 +08:00
commit 4c926688ae
14 changed files with 2399 additions and 58 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 1790f4c762f7d9a47a7b8003c5756011
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,328 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &2138322137238211972
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2460379113771701041}
- component: {fileID: 5383363214608479405}
- component: {fileID: 5559010635172458166}
m_Layer: 5
m_Name: Image
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &2460379113771701041
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2138322137238211972}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 7439154224940252279}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 127, y: 127}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &5383363214608479405
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2138322137238211972}
m_CullTransparentMesh: 1
--- !u!114 &5559010635172458166
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2138322137238211972}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 0427bc6d3915cd245b0f2154a0233de5, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &7439154223232622091
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7439154223232622092}
- component: {fileID: 7439154223232622094}
- component: {fileID: 7439154223232622093}
m_Layer: 5
m_Name: icon
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7439154223232622092
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7439154223232622091}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 7439154224940252279}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 178, y: 178}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &7439154223232622094
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7439154223232622091}
m_CullTransparentMesh: 1
--- !u!114 &7439154223232622093
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7439154223232622091}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 429b1887ae0b8ac4f8cce94addb0b496, type: 3}
m_Type: 1
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &7439154223351718710
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7439154223351718711}
- component: {fileID: 7439154223351718697}
- component: {fileID: 7439154223351718696}
m_Layer: 5
m_Name: Text (TMP)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7439154223351718711
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7439154223351718710}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 7439154224940252279}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -0.00069618, y: -89.3}
m_SizeDelta: {x: 131.55, y: 50}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &7439154223351718697
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7439154223351718710}
m_CullTransparentMesh: 1
--- !u!114 &7439154223351718696
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7439154223351718710}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: 12
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8fd50c39679f0f34ab53f237e8e8ab08, type: 2}
m_sharedMaterial: {fileID: -5950493476346735654, guid: 8fd50c39679f0f34ab53f237e8e8ab08, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4294967295
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 36
m_fontSizeBase: 36
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 512
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!1 &7439154224940252278
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7439154224940252279}
m_Layer: 5
m_Name: items
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7439154224940252279
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7439154224940252278}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 7439154223232622092}
- {fileID: 7439154223351718711}
- {fileID: 2460379113771701041}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -108, y: 191}
m_SizeDelta: {x: 170.7, y: 194.0786}
m_Pivot: {x: 0.5, y: 0.5}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 799d6ee8e0183294eb981de3fbf6002f
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1414,6 +1414,7 @@ MonoBehaviour:
numText: {fileID: 1106311626}
snail: {fileID: 1112535302}
betText: {fileID: 686858939}
BetCoins: 0
--- !u!1 &67925951
GameObject:
m_ObjectHideFlags: 0
@ -1644,6 +1645,7 @@ MonoBehaviour:
numText: {fileID: 46327288}
snail: {fileID: 219934844}
betText: {fileID: 1756588178}
BetCoins: 0
--- !u!1 &91150040
GameObject:
m_ObjectHideFlags: 0
@ -5158,7 +5160,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
queryClosestKnight521: {fileID: 771005324}
queryKnightRoomList522: {fileID: 771005325}
snailKnightBet523: {fileID: 0}
snailKnightBet523: {fileID: 771005327}
id: 0
gameNo:
GameSession: 0
@ -9193,6 +9195,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 6e896077188de3f47b0e618eb84a8fd9, type: 3}
m_Name:
m_EditorClassIdentifier:
retbutton: {fileID: 0}
ClosureObj: {fileID: 0}
--- !u!1 &779183957
GameObject:
m_ObjectHideFlags: 0
@ -12503,6 +12507,7 @@ MonoBehaviour:
numText: {fileID: 1702042055}
snail: {fileID: 540447344}
betText: {fileID: 1594174904}
BetCoins: 0
--- !u!1 &1050191267
GameObject:
m_ObjectHideFlags: 0
@ -14970,6 +14975,7 @@ MonoBehaviour:
numText: {fileID: 1413792591}
snail: {fileID: 1591901237}
betText: {fileID: 10458501}
BetCoins: 0
--- !u!1 &1215198963
GameObject:
m_ObjectHideFlags: 0
@ -18644,7 +18650,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4936081174741538048, guid: ca890c8fc56ec5447bffb4df7172807c, type: 3}
propertyPath: m_IsActive
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4936081174741538049, guid: ca890c8fc56ec5447bffb4df7172807c, type: 3}
propertyPath: m_Pivot.x
@ -18730,6 +18736,26 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4936081176505558907, guid: ca890c8fc56ec5447bffb4df7172807c, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.size
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4936081176505558907, guid: ca890c8fc56ec5447bffb4df7172807c, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Mode
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4936081176505558907, guid: ca890c8fc56ec5447bffb4df7172807c, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target
value:
objectReference: {fileID: 11500000, guid: f9a6dd727fa0d0341a230e5f9ad4f394, type: 3}
- target: {fileID: 4936081176505558907, guid: ca890c8fc56ec5447bffb4df7172807c, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName
value:
objectReference: {fileID: 0}
- target: {fileID: 4936081176505558907, guid: ca890c8fc56ec5447bffb4df7172807c, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_TargetAssemblyTypeName
value: UnityEngine.Object, UnityEngine
objectReference: {fileID: 0}
m_RemovedComponents:
- {fileID: 4936081174741538060, guid: ca890c8fc56ec5447bffb4df7172807c, type: 3}
m_SourcePrefab: {fileID: 100100000, guid: ca890c8fc56ec5447bffb4df7172807c, type: 3}
@ -18757,6 +18783,7 @@ MonoBehaviour:
BetValue: 0
AllBetValue: 0
BetButton: {fileID: 1764245271}
snailKnightBet523: {fileID: 771005327}
--- !u!1 &1531847264
GameObject:
m_ObjectHideFlags: 0
@ -19736,6 +19763,7 @@ MonoBehaviour:
numText: {fileID: 1235189134}
snail: {fileID: 884765245}
betText: {fileID: 934375347}
BetCoins: 0
--- !u!1 &1561496398
GameObject:
m_ObjectHideFlags: 0
@ -20795,6 +20823,7 @@ MonoBehaviour:
numText: {fileID: 1186497993}
snail: {fileID: 1039706606}
betText: {fileID: 1195815655}
BetCoins: 0
--- !u!1 &1656185141
GameObject:
m_ObjectHideFlags: 0
@ -23110,6 +23139,7 @@ MonoBehaviour:
numText: {fileID: 1931260878}
snail: {fileID: 890850301}
betText: {fileID: 939421158}
BetCoins: 0
--- !u!1 &1843981063
GameObject:
m_ObjectHideFlags: 0
@ -24351,6 +24381,7 @@ MonoBehaviour:
numText: {fileID: 1553476819}
snail: {fileID: 435022346}
betText: {fileID: 1561496402}
BetCoins: 0
--- !u!1001 &1946384137
PrefabInstance:
m_ObjectHideFlags: 0

View File

@ -830,6 +830,15 @@ public class AddressInfoData
public int status { get; set; }
public string createTime { get; set; }
}
[Serializable]
public class ServerRespon111 : Response
{
public int snailCount; // 数据对象
public int slotCount;
}
//2.1========================================================
public class getMallListBody
{

View File

@ -2,6 +2,7 @@ using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using UnityEditor.PackageManager.UI;
using UnityEngine;
using UnityEngine.UI;
@ -69,8 +70,8 @@ public class AllManeger : MonoBehaviour
if (horse.HorseNo == item.HorseNo)
{
horse.numText.text = item.HorseBeansCoin.ToString();
StartCoroutine(Tools.AnimateText(float.Parse(horse.numText.text), item.HorseBeansCoin, 0.5f, horse.numText));
//horse.numText.text = item.HorseBeansCoin.ToString();
}
}
@ -81,7 +82,7 @@ public class AllManeger : MonoBehaviour
{
LoadPanel.instance.ShowPanel();
Allreturn();
ClearAllHouseBet();//헌왕굶뒈尻鬧
Fuck521();
isStart = false;
}
@ -105,6 +106,7 @@ public class AllManeger : MonoBehaviour
public async void Fuck523()
{
await snailKnightBet523.SnailKnightBet(id, BetBtn.instance.BetValue, BetBtn.instance.BetHorseId);
}
public void GetHorseInfo521(List<GameKnightRoomResponseVo> GameKnightRoomResponseVoList)//»ñµÃÂíÆ¥µÄÐÅÏ¢
@ -185,6 +187,15 @@ public class AllManeger : MonoBehaviour
snail.startMove();
}
}
public void ClearAllHouseBet()//헌왕尻鬧
{
foreach (HorseInfo horse in horseInfos)
{
horse.BetCoins=0;
horse.betText.text = horse.BetCoins.ToString();
}
}
}

View File

@ -14,12 +14,14 @@ public class BetBtn : MonoBehaviour
public float AllBetValue;//投注总值
public Button BetButton;//投注的按钮
public SnailKnightBet523 snailKnightBet523 = new SnailKnightBet523();
// Start is called before the first frame update
void Start()
{
instance = this;
BetList.SetActive(false);
NumBtn.onClick.AddListener(OnClickNumBtn);
BetButton.onClick.AddListener(BetOnClick);
BetValue = 50;//默认50
SetBet();
}
@ -29,14 +31,23 @@ public class BetBtn : MonoBehaviour
{
}
void BetOnClick()//点击投注
async void BetOnClick()//µã»÷Ͷע
{
AllManeger.instance.Fuck523();
foreach (HorseInfo house in AllManeger.instance.horseInfos)
bool flag= await snailKnightBet523.SnailKnightBet(AllManeger.instance.id, BetValue, BetHorseId);
if (flag)
{
foreach (HorseInfo horse in AllManeger.instance.horseInfos)
{
if (BetHorseId == horse.HorseNo)
{
StartCoroutine(Tools.AnimateText(horse.BetCoins, horse.BetCoins + BetValue, 0.5f, horse.betText));
horse.BetCoins += BetValue;
}
}
AllManeger.instance.Fuck522();
}
}
void OnClickNumBtn()
{

View File

@ -14,5 +14,10 @@ public class HorseInfo : MonoBehaviour
public snailRider snail;
public Text betText;
public float BetCoins=0;//我投注的数
private void Start()
{
betText.text = BetCoins.ToString();
}
}

View File

@ -5,7 +5,7 @@ using System.Collections.Generic;
using System.Threading.Tasks;
using UnityEngine;
//5.2.3下注
public class SnailKnightBet523 : MonoBehaviour
public class SnailKnightBet523 : Base
{
//返回的(解析后)====================
//public KnightRoomBetList knightRoomBetList;
@ -15,7 +15,7 @@ public class SnailKnightBet523 : MonoBehaviour
// await SnailKnightBet(39592, 1, 3); // =============================== 示例,仅供测试
//}
public async Task<KnightRoomBetList> SnailKnightBet(int KnightId,float bet,int horseNo)
public async Task<bool> SnailKnightBet(int KnightId,float bet,int horseNo)
{
// 准备请求的头部信息,包含授权令牌
Dictionary<string, string> head523 = new Dictionary<string, string>
@ -37,19 +37,32 @@ public class SnailKnightBet523 : MonoBehaviour
// 调试输出接收到的响应
Debug.Log("入参"+ JsonConvert.SerializeObject(knightBetBody) + "5.2.3下注: " + response523);
KnightBetResponse knightResponse = new KnightBetResponse();
// 将响应反序列化为对象
try
{
// knightRoomBetList = JsonConvert.DeserializeObject<KnightRoomBetList>(response522);
knightResponse = JsonConvert.DeserializeObject<KnightBetResponse>(response523);
}
catch (Exception ex)
{
Debug.LogError("反序列化响应失败: " + ex.Message);
}
bool isSucceed;
if (knightResponse.code == 200)
{
isSucceed = true;
addEventPopUp(knightResponse.message);
}
else
{
isSucceed = false;
addEventPopUp(knightResponse.message);
}
// 返回解析后的 KnightRoomBetList 对象
return null;
return isSucceed;
}
}

View File

@ -0,0 +1,69 @@
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class BagPanel : MonoBehaviour
{
public GameObject woniuConnect;
public GameObject wokeConnect;
public GameObject woniuSc;
public GameObject wokeSc;
public Button woniuBtn;
public Button wokeBtn;
public GameObject Musk;
// Start is called before the first frame update
void Start()
{
woniuBtn.onClick.AddListener(WoniuClick);
wokeBtn.onClick.AddListener(WokeClick);
Init();
}
async void Init()
{
string response = "";//²âÊÔ
response = await web.SendRequest(web.URL + "/snail/user/queryUserBag", "POST","{}", Global.global.CreateHeaders());
Debug.Log(response);
ServerRespon111 serverRespon111 = JsonConvert.DeserializeObject<ServerRespon111>(response);
for (int i = 0; i < serverRespon111.snailCount; i++)
{
GameObject woniuitem = (GameObject)Instantiate(Resources.Load("LLPrefabs/items"),woniuConnect.transform);
}
for (int i = 0; i < serverRespon111.slotCount; i++)
{
GameObject wokeitem = (GameObject)Instantiate(Resources.Load("LLPrefabs/items"),wokeConnect.transform);
}
wokeSc.gameObject.SetActive(false);
}
void WoniuClick()
{
woniuBtn.transform.SetParent(this.transform);
wokeBtn.transform.SetParent(Musk.transform);
woniuSc.gameObject.SetActive(true);
wokeSc.gameObject.SetActive(false);
}
void WokeClick()
{
woniuBtn.transform.SetParent(Musk.transform);
wokeBtn.transform.SetParent(this.transform);
woniuSc.gameObject.SetActive(false);
wokeSc.gameObject.SetActive(true);
}
// Update is called once per frame
void Update()
{
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: a54bfa6e822cc0e46bb46a16fa0971a3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -254,27 +254,27 @@ PrefabInstance:
objectReference: {fileID: 4499171977774247193, guid: b7a2ccb5cba723240b3b23ecbfd825e2, type: 3}
- target: {fileID: 7365734031970685147, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7365734031970685147, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7365734031970685147, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_SizeDelta.x
value: 0
value: 388
objectReference: {fileID: 0}
- target: {fileID: 7365734031970685147, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_SizeDelta.y
value: 0
value: 120
objectReference: {fileID: 0}
- target: {fileID: 7365734031970685147, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 613
objectReference: {fileID: 0}
- target: {fileID: 7365734031970685147, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -349.91998
objectReference: {fileID: 0}
- target: {fileID: 7365734032093996524, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_Pivot.x
@ -364,53 +364,57 @@ PrefabInstance:
propertyPath: m_Name
value: PersonalCenterPanel
objectReference: {fileID: 0}
- target: {fileID: 7365734032093996531, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7365734032134663386, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7365734032134663386, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7365734032134663386, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_SizeDelta.x
value: 0
value: 388
objectReference: {fileID: 0}
- target: {fileID: 7365734032134663386, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_SizeDelta.y
value: 0
value: 120
objectReference: {fileID: 0}
- target: {fileID: 7365734032134663386, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 194
objectReference: {fileID: 0}
- target: {fileID: 7365734032134663386, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -349.91998
objectReference: {fileID: 0}
- target: {fileID: 7365734032139323463, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7365734032139323463, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7365734032139323463, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_SizeDelta.x
value: 0
value: 388
objectReference: {fileID: 0}
- target: {fileID: 7365734032139323463, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_SizeDelta.y
value: 0
value: 120
objectReference: {fileID: 0}
- target: {fileID: 7365734032139323463, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 613
objectReference: {fileID: 0}
- target: {fileID: 7365734032139323463, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -204.95999
objectReference: {fileID: 0}
- target: {fileID: 7365734032285175081, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMax.y
@ -438,99 +442,99 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 7365734032354904342, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7365734032354904342, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7365734032354904342, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_SizeDelta.x
value: 0
value: 388
objectReference: {fileID: 0}
- target: {fileID: 7365734032354904342, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_SizeDelta.y
value: 0
value: 120
objectReference: {fileID: 0}
- target: {fileID: 7365734032354904342, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 194
objectReference: {fileID: 0}
- target: {fileID: 7365734032354904342, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -204.95999
objectReference: {fileID: 0}
- target: {fileID: 7365734033029684611, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7365734033029684611, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7365734033029684611, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_SizeDelta.x
value: 0
value: 388
objectReference: {fileID: 0}
- target: {fileID: 7365734033029684611, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_SizeDelta.y
value: 0
value: 120
objectReference: {fileID: 0}
- target: {fileID: 7365734033029684611, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 613
objectReference: {fileID: 0}
- target: {fileID: 7365734033029684611, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -60
objectReference: {fileID: 0}
- target: {fileID: 7365734033068930763, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7365734033068930763, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7365734033068930763, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_SizeDelta.x
value: 0
value: 388
objectReference: {fileID: 0}
- target: {fileID: 7365734033068930763, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_SizeDelta.y
value: 0
value: 120
objectReference: {fileID: 0}
- target: {fileID: 7365734033068930763, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 194
objectReference: {fileID: 0}
- target: {fileID: 7365734033068930763, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -494.88
objectReference: {fileID: 0}
- target: {fileID: 7365734033188163814, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7365734033188163814, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7365734033188163814, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_SizeDelta.x
value: 0
value: 388
objectReference: {fileID: 0}
- target: {fileID: 7365734033188163814, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_SizeDelta.y
value: 0
value: 120
objectReference: {fileID: 0}
- target: {fileID: 7365734033188163814, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 194
objectReference: {fileID: 0}
- target: {fileID: 7365734033188163814, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -60
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
@ -819,6 +823,7 @@ RectTransform:
- {fileID: 1616090942}
- {fileID: 3427659398288222956}
- {fileID: 1193514462}
- {fileID: 4693968538677420180}
m_Father: {fileID: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -2434,6 +2439,11 @@ PrefabInstance:
m_RemovedComponents:
- {fileID: 1638252314794827872, guid: b7a2ccb5cba723240b3b23ecbfd825e2, type: 3}
m_SourcePrefab: {fileID: 100100000, guid: b7a2ccb5cba723240b3b23ecbfd825e2, type: 3}
--- !u!224 &4693968538677420180 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 4585283962624518947, guid: 1790f4c762f7d9a47a7b8003c5756011, type: 3}
m_PrefabInstance: {fileID: 9117081133190581175}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &6814293798287098799
PrefabInstance:
m_ObjectHideFlags: 0
@ -2535,6 +2545,103 @@ PrefabInstance:
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: e5c046c3f1c62864ba234187c5a6be1e, type: 3}
--- !u!1001 &9117081133190581175
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 1665540835}
m_Modifications:
- target: {fileID: 4585283962624518944, guid: 1790f4c762f7d9a47a7b8003c5756011, type: 3}
propertyPath: m_Name
value: Bagbg
objectReference: {fileID: 0}
- target: {fileID: 4585283962624518947, guid: 1790f4c762f7d9a47a7b8003c5756011, type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4585283962624518947, guid: 1790f4c762f7d9a47a7b8003c5756011, type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4585283962624518947, guid: 1790f4c762f7d9a47a7b8003c5756011, type: 3}
propertyPath: m_RootOrder
value: 8
objectReference: {fileID: 0}
- target: {fileID: 4585283962624518947, guid: 1790f4c762f7d9a47a7b8003c5756011, type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4585283962624518947, guid: 1790f4c762f7d9a47a7b8003c5756011, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4585283962624518947, guid: 1790f4c762f7d9a47a7b8003c5756011, type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4585283962624518947, guid: 1790f4c762f7d9a47a7b8003c5756011, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4585283962624518947, guid: 1790f4c762f7d9a47a7b8003c5756011, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4585283962624518947, guid: 1790f4c762f7d9a47a7b8003c5756011, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4585283962624518947, guid: 1790f4c762f7d9a47a7b8003c5756011, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4585283962624518947, guid: 1790f4c762f7d9a47a7b8003c5756011, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4585283962624518947, guid: 1790f4c762f7d9a47a7b8003c5756011, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4585283962624518947, guid: 1790f4c762f7d9a47a7b8003c5756011, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4585283962624518947, guid: 1790f4c762f7d9a47a7b8003c5756011, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4585283962624518947, guid: 1790f4c762f7d9a47a7b8003c5756011, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4585283962624518947, guid: 1790f4c762f7d9a47a7b8003c5756011, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4585283962624518947, guid: 1790f4c762f7d9a47a7b8003c5756011, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4585283962624518947, guid: 1790f4c762f7d9a47a7b8003c5756011, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4585283962624518947, guid: 1790f4c762f7d9a47a7b8003c5756011, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4585283962624518947, guid: 1790f4c762f7d9a47a7b8003c5756011, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4585283962624518947, guid: 1790f4c762f7d9a47a7b8003c5756011, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 1790f4c762f7d9a47a7b8003c5756011, type: 3}
--- !u!1001 &9180338299047021035
PrefabInstance:
m_ObjectHideFlags: 0

View File

@ -66,7 +66,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Sprite: {fileID: 21300000, guid: a12aeadfd6503204588176cfe26c97c8, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1