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;//团队使用金币
|
|
public Text Contributetext;//战队贡献度
|
|
public Text LoadingProgress;//当前加载进度
|
|
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 = "团队人数:" + response.Data.Info.team_count;
|
|
LoadingProgress.text = "当前加载进度:" + 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()
|
|
{
|
|
|
|
}
|
|
}
|