本文整理汇总了C#中UIManager.GetComponent方法的典型用法代码示例。如果您正苦于以下问题:C# UIManager.GetComponent方法的具体用法?C# UIManager.GetComponent怎么用?C# UIManager.GetComponent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UIManager
的用法示例。
在下文中一共展示了UIManager.GetComponent方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BackBu
public void BackBu()
{
if (GameManager.IsEmptyMember() == true)
{
Caution.enabled = false;
// UIManager.CreatePopup(2, "길드 ", "길드여", new Vector3(0, 0));
UIManager.CreatePopup("Need to complete Party Composotion");
}
else
{
bool sendPacket = false;
if (PacketManager.instance.packetHandler.ContainsKey(PacketManager.PacketID.ROBBY) == true)
{
if (PacketManager.instance.packetHandler[PacketManager.PacketID.ROBBY] != null)
{
RobbyPacket robbyPacket =
PacketManager.instance.packetHandler[PacketManager.PacketID.ROBBY] as RobbyPacket;
if (robbyPacket.responseData != null)
{
Debug.Log("Refresh USERData ERR profile 1: from Server");
if (robbyPacket.responseData._party != null)
{
int originCharIndex1 = robbyPacket.responseData.GetHeroDTOIndexbyPartyUno(robbyPacket.responseData._party[0].crew.c1);
int originCharIndex2 = robbyPacket.responseData.GetHeroDTOIndexbyPartyUno(robbyPacket.responseData._party[0].crew.c2);
int originCharIndex3 = robbyPacket.responseData.GetHeroDTOIndexbyPartyUno(robbyPacket.responseData._party[0].crew.c3);
for (int i = 0; i < 3; i++)
{
if (GameManager.User.party.member[i].index != originCharIndex1 ||
GameManager.User.party.member[i].index != originCharIndex2 ||
GameManager.User.party.member[i].index != originCharIndex3)
{
sendPacket = true;
break;
}
}
}
}
if (sendPacket == true)
{
PartyMemberChangePacket memberChangePacket
= new PartyMemberChangePacket(robbyPacket.responseData._party[0].uno,
robbyPacket.responseData.GetUnobyHeroIndex(GameManager.User.party.member[0].index),
robbyPacket.responseData.GetUnobyHeroIndex(GameManager.User.party.member[1].index),
robbyPacket.responseData.GetUnobyHeroIndex(GameManager.User.party.member[2].index));
PacketManager.instance.Request(PacketManager.PacketID.PARTY_MEMBER_CHARNGE,
memberChangePacket as IPacketHandler);
Debug.Log("SendPacket to PartyInfo");
}
}
}
// 서버 저장 버젼과 검증후에 packet send
UIMRoot = GameObject.Find("UI Manager").GetComponent<UIManager>();
UIMRoot.GetComponent<UIManager>().gotoLobby();
}
}