71 lines
2.3 KiB
C#
71 lines
2.3 KiB
C#
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
using UnityEngine.UI;
|
|||
|
public class Team : MonoBehaviour
|
|||
|
{
|
|||
|
public Text teamusegold;
|
|||
|
|
|||
|
public Text TeamName;
|
|||
|
public Text TeamId;
|
|||
|
public Text TeamCount;
|
|||
|
public GameObject item;
|
|||
|
public Transform parent;
|
|||
|
|
|||
|
public Text gold;//<2F>Ŷ<EFBFBD>ʹ<EFBFBD>ý<EFBFBD><C3BD><EFBFBD>
|
|||
|
public Text Contributetext;//ս<>ӹ<EFBFBD><D3B9><EFBFBD>
|
|||
|
public Text LoadingProgress;//<2F><>ǰ<EFBFBD><C7B0><EFBFBD>ؽ<EFBFBD><D8BD><EFBFBD>
|
|||
|
public Button Submitbtn;
|
|||
|
public Image DirectPushFill;
|
|||
|
public Image PushFill;
|
|||
|
|
|||
|
public Text Inviteusername;
|
|||
|
public Text Inviteuserid;
|
|||
|
|
|||
|
async void Start()
|
|||
|
{
|
|||
|
TeamInfoResponse response = await Scene_main_jiekou.instance.TeamInfos();
|
|||
|
|
|||
|
//if (response.Data.inviter_show == 1)
|
|||
|
//{
|
|||
|
// Inviteusername.text = info.Data.inviter.Nickname;
|
|||
|
// Inviteuserid.text = info.Data.inviter.Uid;
|
|||
|
// Invitewaternumner.text = info.Data.inviter.water.ToString();
|
|||
|
// Invitewaterobj.gameObject.SetActive(true);
|
|||
|
// start.gameObject.SetActive(true);
|
|||
|
//}
|
|||
|
//else
|
|||
|
//{
|
|||
|
// Inviteusername.text = "";
|
|||
|
// Inviteuserid.text = "";
|
|||
|
// Invitewaterobj.gameObject.SetActive(false);
|
|||
|
// start.gameObject.SetActive(false);
|
|||
|
//}
|
|||
|
|
|||
|
TeamName.text = response.Data.Info.Nickname;
|
|||
|
TeamId.text = response.Data.Info.Uid;
|
|||
|
TeamCount.text = "<22>Ŷ<EFBFBD><C5B6><EFBFBD><EFBFBD><EFBFBD>:" + response.Data.Info.team_count;
|
|||
|
LoadingProgress.text = "<22><>ǰ<EFBFBD><C7B0><EFBFBD>ؽ<EFBFBD><D8BD>ȣ<EFBFBD>" + response.Data.Items[0].Percentage *10 +"%";
|
|||
|
//gold.text = response.Data.Info.directly_active_count + "/" + response.Data.Info.directly_count;
|
|||
|
//DirectPushFill.fillAmount = (float)response.Data.Info.directly_active_count / response.Data.Info.directly_count;
|
|||
|
//Contributetext.text = response.Data.Info.team_active_count + "/" + response.Data.Info.team_count;
|
|||
|
//PushFill.fillAmount = (float)response.Data.Info.team_active_count / response.Data.Info.team_count;
|
|||
|
Init();
|
|||
|
}
|
|||
|
async void Init()
|
|||
|
{
|
|||
|
TeamFansList response =await Scene_main_jiekou.instance.TeamFansLists();
|
|||
|
|
|||
|
for (int i = 0; i < response.Data.Pages.TotalCount; i++)
|
|||
|
{
|
|||
|
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
// Update is called once per frame
|
|||
|
void Update()
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
}
|