Merge branch 'main' of http://shu.sheziwanglo.cn:3000/hyskai/_TheStrongestSnail
This commit is contained in:
commit
93c812febc
@ -394,7 +394,7 @@ GameObject:
|
||||
- component: {fileID: 1939568758}
|
||||
- component: {fileID: 1939568757}
|
||||
m_Layer: 5
|
||||
m_Name: Canvas
|
||||
m_Name: lianghaoCanvas
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
|
@ -527,12 +527,12 @@ RectTransform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 123743689}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
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: 332514050}
|
||||
m_Father: {fileID: 1256004920}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
@ -1650,10 +1650,9 @@ RectTransform:
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 123743690}
|
||||
- {fileID: 333482354}
|
||||
- {fileID: 1432776092}
|
||||
- {fileID: 1546589078}
|
||||
- {fileID: 473536620}
|
||||
- {fileID: 1256004920}
|
||||
- {fileID: 635931425}
|
||||
m_Father: {fileID: 278122029}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
@ -1706,7 +1705,7 @@ RectTransform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 333482353}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
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
|
||||
@ -1715,7 +1714,7 @@ RectTransform:
|
||||
- {fileID: 1906759231}
|
||||
- {fileID: 934652042}
|
||||
- {fileID: 581360586}
|
||||
m_Father: {fileID: 332514050}
|
||||
m_Father: {fileID: 1256004920}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
@ -1844,6 +1843,43 @@ MonoBehaviour:
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
--- !u!1 &473536619
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 473536620}
|
||||
m_Layer: 5
|
||||
m_Name: top
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &473536620
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 473536619}
|
||||
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: 2093754758}
|
||||
m_Father: {fileID: 332514050}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!1 &500353809
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -2483,6 +2519,82 @@ Transform:
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
|
||||
--- !u!1 &635931424
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 635931425}
|
||||
- component: {fileID: 635931427}
|
||||
- component: {fileID: 635931426}
|
||||
m_Layer: 5
|
||||
m_Name: Image
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &635931425
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 635931424}
|
||||
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: 332514050}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &635931426
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 635931424}
|
||||
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: 0.3764706}
|
||||
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: 84ba20195ccc68a4bb2aef37b4824216, 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!222 &635931427
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 635931424}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &664931423
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -5236,6 +5348,46 @@ CanvasRenderer:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1227436478}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &1256004919
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1256004920}
|
||||
m_Layer: 5
|
||||
m_Name: mid
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1256004920
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1256004919}
|
||||
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: 123743690}
|
||||
- {fileID: 333482354}
|
||||
- {fileID: 1432776092}
|
||||
- {fileID: 1546589078}
|
||||
m_Father: {fileID: 332514050}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!1 &1298370611
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -6032,7 +6184,7 @@ RectTransform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1432776091}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
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
|
||||
@ -6041,7 +6193,7 @@ RectTransform:
|
||||
- {fileID: 1882508111}
|
||||
- {fileID: 1402800429}
|
||||
- {fileID: 747800368}
|
||||
m_Father: {fileID: 332514050}
|
||||
m_Father: {fileID: 1256004920}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
@ -6603,7 +6755,7 @@ RectTransform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1546589077}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
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
|
||||
@ -6612,7 +6764,7 @@ RectTransform:
|
||||
- {fileID: 1492431540}
|
||||
- {fileID: 1925097337}
|
||||
- {fileID: 1216999278}
|
||||
m_Father: {fileID: 332514050}
|
||||
m_Father: {fileID: 1256004920}
|
||||
m_RootOrder: 3
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
@ -9293,6 +9445,82 @@ CanvasRenderer:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2088709624}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &2093754757
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 2093754758}
|
||||
- component: {fileID: 2093754760}
|
||||
- component: {fileID: 2093754759}
|
||||
m_Layer: 5
|
||||
m_Name: zhuangtailan
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &2093754758
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2093754757}
|
||||
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: 473536620}
|
||||
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: 1008}
|
||||
m_SizeDelta: {x: 1222.9531, y: 119.8408}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &2093754759
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2093754757}
|
||||
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: 8f17617fe26a78f439445b5488a94fa1, 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!222 &2093754760
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2093754757}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &2095145555
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
38
TheStrongestSnail/Assets/Scripts/GoodId/BuyGoodId42.cs
Normal file
38
TheStrongestSnail/Assets/Scripts/GoodId/BuyGoodId42.cs
Normal file
@ -0,0 +1,38 @@
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
|
||||
public class BuyGoodId42 : MonoBehaviour
|
||||
{
|
||||
public async Task<BuyGoodIdResponse> buyGoodId(int cutePoolId) // 4.2
|
||||
{
|
||||
// 准备请求的头部信息,包含授权令牌
|
||||
Dictionary<string, string> head41 = new Dictionary<string, string>
|
||||
{
|
||||
{ "Authorization", Global.global.serverResponse.data.token }
|
||||
};
|
||||
|
||||
// 请求体
|
||||
BuyGoodIdBody buyGoodIdBody = new BuyGoodIdBody
|
||||
{
|
||||
userId = Global.global.serverResponse.data.userId,
|
||||
cutePoolId = cutePoolId
|
||||
};
|
||||
|
||||
// 异步发送请求
|
||||
Debug.Log("======入参======" + JsonConvert.SerializeObject(buyGoodIdBody));
|
||||
string response42 = await web.SendRequest(web.URL + "/snail/cutePool/buy", "POST", JsonConvert.SerializeObject(buyGoodIdBody), head41);
|
||||
|
||||
// 调试输出接收到的响应
|
||||
Debug.Log("4.2购买靓号==" + response42);
|
||||
|
||||
// 将响应反序列化为对象
|
||||
BuyGoodIdResponse buyGoodIdResponse = JsonConvert.DeserializeObject<BuyGoodIdResponse>(response42);
|
||||
Debug.Log("8==================================D" + buyGoodIdResponse.Data.TotalCount);
|
||||
return buyGoodIdResponse;
|
||||
|
||||
}
|
||||
}
|
||||
|
11
TheStrongestSnail/Assets/Scripts/GoodId/BuyGoodId42.cs.meta
Normal file
11
TheStrongestSnail/Assets/Scripts/GoodId/BuyGoodId42.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e55a4e0a058739742a83e8d77ae91065
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -628,7 +628,7 @@ public class GoodIdItem
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string CuteNo { get; set; }
|
||||
public float BeansCoin { get; set; }
|
||||
public decimal BeansCoin { get; set; }
|
||||
public int UserId { get; set; }
|
||||
public int Type { get; set; }
|
||||
public int Status { get; set; }
|
||||
@ -639,3 +639,31 @@ public class GoodIdPageBody
|
||||
{
|
||||
public int orderByDesc { get; set; }
|
||||
}
|
||||
//====4.2购买靓号=========================================================
|
||||
//请求体
|
||||
public class BuyGoodIdBody
|
||||
{
|
||||
public int userId { get; set; }
|
||||
public int cutePoolId { get; set; }
|
||||
}
|
||||
//返回值
|
||||
|
||||
public class BuyGoodIdResponse : Response
|
||||
{
|
||||
public BuyGoodIdData Data { get; set; }
|
||||
}
|
||||
|
||||
public class BuyGoodIdData
|
||||
{
|
||||
public int PageNo { get; set; }
|
||||
public int PageSize { get; set; }
|
||||
public int TotalCount { get; set; }
|
||||
public List<object> DataList { get; set; } // 你可以根据需要将List<object>替换为List<YourDataType>===========================================================
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -17,12 +17,13 @@ public class LoginItem :MonoBehaviour
|
||||
|
||||
public async void Init()
|
||||
{
|
||||
idResponse=await goodId.queryUnionPage();
|
||||
idResponse = await goodId.queryUnionPage();
|
||||
for (int i = 0; i < idResponse.Data.DataList.Count; i++)
|
||||
{
|
||||
GameObject Lhitem = (GameObject)Instantiate(Resources.Load("LLPrefabs/Beautiful_numberttem"),contentItem);
|
||||
GameObject Lhitem = (GameObject)Instantiate(Resources.Load("LLPrefabs/Beautiful_numberttem"), contentItem);
|
||||
Lhitem.GetComponent<NumberTc>().BeautifulNumber.text = idResponse.Data.DataList[i].CuteNo;
|
||||
Lhitem.GetComponent<NumberTc>().price.text = idResponse.Data.DataList[i].BeansCoin.ToString();
|
||||
Lhitem.GetComponent<NumberTc>().id = idResponse.Data.DataList[i].Id;
|
||||
if (idResponse.Data.DataList[i].Type == 1)
|
||||
{
|
||||
Lhitem.GetComponent<NumberTc>().musk_show();
|
||||
|
@ -7,6 +7,8 @@ public class Nice_numPanel : MonoBehaviour
|
||||
public Button CancleBtn;
|
||||
public Button ConfirmBtn;
|
||||
public NumberTc numberTc;
|
||||
BuyGoodIdResponse buyGoodIdResponse = new BuyGoodIdResponse();
|
||||
BuyGoodId42 buyGoodId42 = new BuyGoodId42();
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
@ -16,23 +18,17 @@ public class Nice_numPanel : MonoBehaviour
|
||||
|
||||
void CanclePanel()
|
||||
{
|
||||
Destroy(this.gameObject);
|
||||
Destroy(this.gameObject);
|
||||
}
|
||||
|
||||
void ConfirmBuy()
|
||||
async void ConfirmBuy()
|
||||
{
|
||||
string pricetext = numberTc.price.text;
|
||||
if ((PlayerInfo.instance.Money - float.Parse(pricetext)) >= 0)
|
||||
{
|
||||
|
||||
numberTc.musk_show();
|
||||
Destroy(this.gameObject);
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("弹出蜗壳不足的弹窗");
|
||||
}
|
||||
|
||||
//string pricetext = numberTc.price.text;
|
||||
buyGoodIdResponse = await buyGoodId42.buyGoodId(numberTc.id);
|
||||
Debug.Log(buyGoodIdResponse);
|
||||
numberTc.musk_show();
|
||||
Destroy(this.gameObject);
|
||||
//Debug.Log("弹出蜗壳不足的弹窗");
|
||||
}
|
||||
|
||||
|
||||
|
@ -7,13 +7,14 @@ public class NumberTc : MonoBehaviour
|
||||
{
|
||||
public TextMeshProUGUI BeautifulNumber;
|
||||
public TextMeshProUGUI price;
|
||||
public int id;
|
||||
public Button Show_buy;
|
||||
public Canvas jiemianCanvas;
|
||||
public GameObject musk;
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
jiemianCanvas = GameObject.Find("Canvas").GetComponent<Canvas>();
|
||||
jiemianCanvas = GameObject.Find("lianghaoCanvas").GetComponent<Canvas>();
|
||||
Show_buy.onClick.AddListener(ShowBuy_TanChuang);
|
||||
}
|
||||
|
||||
|
@ -10,14 +10,15 @@ public class EventPopUp : MonoBehaviour
|
||||
public string text = "";
|
||||
public Image Image;
|
||||
public Text textobg;
|
||||
public float time = 5f;
|
||||
async void Start()
|
||||
{
|
||||
Canvas canvas = GetComponentInParent<Canvas>();
|
||||
float canvasHeight = canvas.GetComponent<RectTransform>().rect.height;
|
||||
transform.DOMoveY(canvasHeight - (canvasHeight*0.3f), 1.5f);
|
||||
await Task.Delay(500);
|
||||
Image.DOColor(new Color(1f, 1f, 1f, 0f), 5f);
|
||||
textobg.DOColor(new Color(1f, 1f, 1f, 0f), 5f);
|
||||
Image.DOColor(new Color(1f, 1f, 1f, 0f), time);
|
||||
textobg.DOColor(new Color(1f, 1f, 1f, 0f), time);
|
||||
await Task.Delay(5100);
|
||||
Destroy(gameObject);
|
||||
}
|
||||
|
@ -31,9 +31,10 @@ public class Base : MonoBehaviour
|
||||
await tcs.Task;
|
||||
}
|
||||
|
||||
public void addEventPopUp(string Details)//Ìí¼Óµ¯´°
|
||||
public void addEventPopUp(string Details,float time = 5f)//Ìí¼Óµ¯´°
|
||||
{
|
||||
GameObject prefab = Resources.Load<GameObject>("base/EventPopUp");
|
||||
prefab.GetComponent<EventPopUp>().time = time;
|
||||
Canvas canvas = GetComponentInParent<Canvas>();
|
||||
prefab.GetComponent<EventPopUp>().text = Details;
|
||||
Instantiate(prefab, canvas.transform);
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 1.3 MiB |
BIN
TheStrongestSnail/Assets/res/Scene_main/2222.png
Normal file
BIN
TheStrongestSnail/Assets/res/Scene_main/2222.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 MiB |
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 263d5b6b9a7228c4298f92ba8e135997
|
||||
guid: 84ba20195ccc68a4bb2aef37b4824216
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
@ -48,7 +48,7 @@ TextureImporter:
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteBorder: {x: 117, y: 41, z: 127, w: 42}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
@ -120,7 +120,7 @@ TextureImporter:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
internalID: 0
|
||||
internalID: 1537655665
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
|
Loading…
Reference in New Issue
Block a user