添加任务书接口

This commit is contained in:
YangHua 2023-09-14 15:13:06 +08:00
parent 06a144fb6a
commit 0e1424e037
2 changed files with 11 additions and 15 deletions

View File

@ -103343,8 +103343,10 @@ MonoBehaviour:
m_EditorClassIdentifier:
RWPanel: {fileID: 5090827398298492658}
rws: {fileID: 7550337382994350724}
rwsTip: {fileID: 1464913868116621290}
loadBtn: {fileID: 7502760747128527674}
originPos: {x: 0, y: 0}
url: http://111.229.30.246:10013/Handler/Taiqu.ashx?action=rws
--- !u!114 &1067605745
MonoBehaviour:
m_ObjectHideFlags: 0
@ -113855,7 +113857,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
m_IsActive: 1
--- !u!224 &1189450974
RectTransform:
m_ObjectHideFlags: 0
@ -201301,18 +201303,6 @@ RectTransform:
m_AnchoredPosition: {x: -416, y: -65}
m_SizeDelta: {x: 1059, y: 585}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &7650852213641946357
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9029326305111261340}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 41a6ccb45404ead45a8ec03025263a84, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!222 &8409965097830473489
CanvasRenderer:
m_ObjectHideFlags: 0
@ -201332,7 +201322,6 @@ GameObject:
- component: {fileID: 6346542558084323096}
- component: {fileID: 6050573552887945181}
- component: {fileID: 1464913868116621290}
- component: {fileID: 7650852213641946357}
m_Layer: 5
m_Name: Text
m_TagString: Untagged

View File

@ -1,3 +1,4 @@
using AData;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
@ -16,9 +17,15 @@ namespace Adam
{
public GameObject RWPanel;
public RectTransform rws;
public Text rwsTip;
public Button loadBtn;
public Vector2 originPos = new Vector2();
public string url = "http://111.229.30.246:10013/Handler/Taiqu.ashx?action=rws";
private async void Awake()
{
AssignmentDatas aData = await AsyncWebReq.Get<AssignmentDatas>(url);
rwsTip.text = aData.message;
}
private void Start()
{
originPos = rws.anchoredPosition;