This commit is contained in:
杨号敬 2025-01-04 16:22:02 +08:00
parent abadd636a3
commit 22217f8b6f
3 changed files with 49 additions and 13 deletions

View File

@ -17897,13 +17897,14 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 204186791}
- component: {fileID: 204186792}
m_Layer: 5
m_Name: Island_Owner
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
m_IsActive: 1
--- !u!224 &204186791
RectTransform:
m_ObjectHideFlags: 0
@ -17925,6 +17926,22 @@ RectTransform:
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &204186792
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 204186790}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8bb6b06bae922b64e847c03efd5f99c8, type: 3}
m_Name:
m_EditorClassIdentifier:
gold: {fileID: 2065901645}
introtext: {fileID: 1134156939}
islandname: {fileID: 0}
InvesttotalText: {fileID: 102322138}
--- !u!1 &205715504
GameObject:
m_ObjectHideFlags: 0
@ -64418,6 +64435,10 @@ PrefabInstance:
propertyPath: m_Name
value: return_btn
objectReference: {fileID: 0}
- target: {fileID: 8631885451795898582, guid: 638b7f7423db411419568d073208d929, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8631885451795898584, guid: 638b7f7423db411419568d073208d929, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.size
value: 1
@ -179932,6 +179953,10 @@ PrefabInstance:
propertyPath: m_Name
value: AssetsPanel
objectReference: {fileID: 0}
- target: {fileID: 4284489241738703986, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4284489241738703987, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3}
propertyPath: m_Pivot.x
value: 0.5
@ -180018,35 +180043,35 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4284489241791779464, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3}
propertyPath: m_AnchorMax.y
value: 1
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4284489241791779464, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3}
propertyPath: m_AnchorMin.y
value: 1
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4284489241791779464, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3}
propertyPath: m_AnchoredPosition.x
value: 284
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4284489241791779464, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3}
propertyPath: m_AnchoredPosition.y
value: -43
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4284489241841894086, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3}
propertyPath: m_AnchorMax.y
value: 1
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4284489241841894086, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3}
propertyPath: m_AnchorMin.y
value: 1
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4284489241841894086, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3}
propertyPath: m_AnchoredPosition.x
value: 428
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4284489241841894086, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3}
propertyPath: m_AnchoredPosition.y
value: -43
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4284489242025471100, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3}
propertyPath: m_IsActive
@ -180079,6 +180104,17 @@ RectTransform:
m_CorrespondingSourceObject: {fileID: 4284489241738703987, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3}
m_PrefabInstance: {fileID: 2065901643}
m_PrefabAsset: {fileID: 0}
--- !u!114 &2065901645 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 4284489241406162018, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3}
m_PrefabInstance: {fileID: 2065901643}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &2067849332
MonoBehaviour:
m_ObjectHideFlags: 0

View File

@ -23,7 +23,7 @@ public class Auctioninformation: MonoBehaviour
public async Task<AuctionResponse> InformationTask()
{
string response = await myWeb.SendRequest(myWeb.URL + "/api/island/submit", "GET", "{}", CreateHeaders());
string response = await myWeb.SendRequest(myWeb.URL + "/api/island/info", "GET", "{}", CreateHeaders());
Debug.Log("µºÖ÷ÐÅÏ¢" + response);
AuctionResponse Island = JsonConvert.DeserializeObject<AuctionResponse>(response);
//Debug.Log(teamInfo.Data.Info.Nickname);
@ -37,10 +37,10 @@ public class AuctionResponse
}
public class AuctionData
{
public int gold { get; set; }
public float gold { get; set; }
public string intro_text { get; set; }
public int countdown { get; set; }
public int island_id { get; set; }
public string island_name { get; set; }
public int invest_total { get; set; }
public float invest_total { get; set; }
}

View File

@ -23,7 +23,7 @@ public class Islandownerbidding: MonoBehaviour
public async Task<IslandResponse> Island(Islandbody islandbody)
{
Debug.Log("µºÖ÷¾ºÅÄÈë²Î" + JsonConvert.SerializeObject(islandbody));
string response = await myWeb.SendRequest(myWeb.URL + "/api/island/info", "POST", JsonConvert.SerializeObject(islandbody), CreateHeaders());
string response = await myWeb.SendRequest(myWeb.URL + "/api/island/submit", "POST", JsonConvert.SerializeObject(islandbody), CreateHeaders());
Debug.Log("µºÖ÷¾ºÅÄ" + response);
IslandResponse Island = JsonConvert.DeserializeObject<IslandResponse>(response);
//Debug.Log(teamInfo.Data.Info.Nickname);