2024-11-27 00:17:30 +08:00
|
|
|
|
using UnityEngine;
|
2024-11-28 08:35:07 +08:00
|
|
|
|
|
2024-11-27 00:17:30 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//public class ShouXuFei : MonoBehaviour
|
|
|
|
|
//{
|
|
|
|
|
// queryPlayerInfo queryPlayerInfo = new queryPlayerInfo();
|
|
|
|
|
// RealPlayerInfo shouXuInfo = new RealPlayerInfo();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// async void Start()
|
|
|
|
|
// {
|
|
|
|
|
// shouXuInfo = await queryPlayerInfo.QueryPlayerInfoPro();
|
|
|
|
|
// Debug.Log("===============" + shouXuInfo.data.unionId);
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
//async void Start()
|
|
|
|
|
//{
|
|
|
|
|
// shouXuInfo = await queryPlayerInfo.QueryPlayerInfoPro();
|
|
|
|
|
// Debug.Log("===============" + shouXuInfo.data.unionId);
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
//public async Task<float> ShouXu()
|
|
|
|
|
//{
|
|
|
|
|
// // <20>ȴ<EFBFBD> shouXuInfo <20><>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
|
|
|
|
|
// while (shouXuInfo.data == null || shouXuInfo.data.unionId == 0)
|
|
|
|
|
// {
|
|
|
|
|
// await Task.Yield(); // Yield <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȴ<EFBFBD>ֱ<EFBFBD><D6B1> shouXuInfo <20><><EFBFBD>ɸ<EFBFBD>ֵ
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// if (shouXuInfo.data.unionId <= 0)
|
|
|
|
|
// {
|
|
|
|
|
// if (shouXuInfo.data.isMember)
|
|
|
|
|
// {
|
|
|
|
|
// return 0.08f;
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// else
|
|
|
|
|
// {
|
|
|
|
|
// return 0;
|
|
|
|
|
// }
|
|
|
|
|
// return 0;
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
public class ShouXuFei : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
//queryPlayerInfo queryPlayerInfo = new queryPlayerInfo();
|
|
|
|
|
//RealPlayerInfo shouXuInfo = new RealPlayerInfo();
|
|
|
|
|
//async void Start()
|
|
|
|
|
//{
|
|
|
|
|
// shouXuInfo = await queryPlayerInfo.QueryPlayerInfoPro();
|
|
|
|
|
// Debug.Log("===============" + shouXuInfo.data.unionId);
|
|
|
|
|
// Debug.Log(ShouXu()+"=================");
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
public float ShouXu(int unionId,bool Member)
|
|
|
|
|
{
|
|
|
|
|
if (unionId <= 0)
|
|
|
|
|
{
|
|
|
|
|
if (Member)
|
|
|
|
|
{
|
|
|
|
|
return 0.08f;
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
return 0.13f;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|